Skip to content
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

non-convergence and errors with random effects models using mblogit #7

Closed
rebeccaltaylor opened this issue May 28, 2020 · 4 comments
Closed

Comments

@rebeccaltaylor
Copy link

Hi. I was using the CRAN version of package mclogit and none of my random effects models using the mblogit command converged, whether or not I used the control argument. I read an online post from another user who encountered this and said it was a package error that had been fixed in the version currently on Github, so I installed that version. The random effects model still fails to converge if I do not use the control argument and the summary warns, "In sqrt(diag(vcov.phi)) : NaNs produced." I understand my data may simply be unable to support a random effects model. However, I tried, but failed, to implement the control argument in the Github version of the package.

Here is the command and error message when I use control = mmclogit.control

MBLrW <- mblogit(aBehavior ~ Trt15_25_5min, random=~1|Deployment, data=HO,
control=mmclogit.control(epsilon = 1e-12, maxit = 100, trace=TRUE,
trace.inner=FALSE, avoid.increase = FALSE,break.on.increase = FALSE,
break.on.infinite = FALSE, break.on.negative = FALSE))

Error in mmclogit.control(epsilon = 1e-12, maxit = 100, trace = TRUE, :

could not find function "mmclogit.control"

Here is the command and error message when I use control = mclogit.control

MBLrW <- mblogit(aBehavior ~ Trt15_25_5min, random=~1|Deployment, data=HO,
control=mclogit.control(epsilon = 1e-12, maxit = 100, trace=TRUE))

Error in mmclogit.fitPQLMQL(y = Y, s = s, w = weights, X = XD, Z = ZD, : object 'step.truncated' not found

In addition: Warning messages:

1: In mmclogit.fitPQLMQL(y = Y, s = s, w = weights, X = XD, Z = ZD, : Numeric problems in inner iteration, bailing out

2: Algorithm did not converge

Anything you could do to help me would be wonderful. Thank you.

@melff
Copy link
Owner

melff commented May 28, 2020 via email

@melff
Copy link
Owner

melff commented May 28, 2020

Just created release 0.8.2.1, where this is hopefully resolved.

@rebeccaltaylor
Copy link
Author

rebeccaltaylor commented May 28, 2020 via email

@rebeccaltaylor
Copy link
Author

rebeccaltaylor commented May 29, 2020 via email

@melff melff closed this as completed Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants