-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Hi!
I'm trying to run a PGLMM using 5 random effects, one of which is nested. However, I keep receiving the below error:
Error in chol.default(re.i[[3]]) :
the leading minor of order 3 is not positive definite
After sequentially removing the other random effects, the single nested random effect is the one causing the error (it is the 3rd in the list of 5, which is what I assume re.i[[3]] indicates). I looked through stack overflow and found that this error can mean that the matrix you provided is not square. The random effect is below:
r.intercept.bacphy_bf<-list(1, sp=dat$Genus, covar=Vphy, site=dat$Sample)
There is no missing data and I checked that sp and site are the same length, so I don't see why they asymmetrical. Is there some other meaning to this error? Or am I missing something about the input format required for nested random effects?
Thanks for any insight!
Kelly