-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error when trying brnb for negative binomial #31
Comments
Thanks! Here is a reproducible example:
I figured out that it only happens when the fixed effect is categorical; when I use a numeric version of Treatment, the error disappears:
In my real data it wouldn't be appropriate to convert Treatment to numeric, so I would really appreciate it if you could find a solution for using a categorical fixed effect! |
Any update on this? |
We are investigating the issue you opened. I understand that you may need a resolution quickly, but please note that we cannot guarantee the timeframe of response/resolution. |
Hi! I totally understand that you couldn't resolve this issue right away; are you any closer? |
any update? |
I am having the same issue. |
Hello,
I was excited to find this package to solve my complete separation problem. My count data is overdispersed so need to use the negative binomial family, which I understand is run using brnb(). I keep getting this error: NA/NaN/Inf in foreign function call (arg 1), even though I am specifying all the necessary terms:
salmonella_fm <- production ~ Treat_comboSource_Salinity +Rarity+ Region+Treat_comboTurion_length_num+replanted.x
N_T_6_2020_nbn <- brglm2::brnb(salmonella_fm,
data=turion_harvest_2021_all_gen_initial_turion,link = "log",transformation = "inverse", type = "AS_mean")
I've noticed that the error disappears if I use type="ML" but all other types trigger the error.
Could you please advise?
Thanks!
-Carrie
The text was updated successfully, but these errors were encountered: