drizopoulos / GLMMadaptive

GLMMs with adaptive Gaussian quadrature
https://drizopoulos.github.io/GLMMadaptive/
60 stars 14 forks source link

Error in chol.default(X[[i]], ...) #36

Closed Ivy-ops closed 3 years ago

Ivy-ops commented 3 years ago

Hi developer,

Thanks for creating this package. I encounter below error when running below code. May I please have your help? Thanks!!

gm1 <- mixed_model(fixed = taxon ~ X + time, random = ~ time|SubjectID, data = df, family=zi.negative.binomial(), zi_fixed = ~ 1)

Error in chol.default(X[[i]], ...) : 
  the leading minor of order 1 is not positive definite
drizopoulos commented 3 years ago

Without a reproducible example, I cannot see what is going wrong.