Skip to content

Nested communityPGLMM error in random effects #70

@kspeeriful

Description

@kspeeriful

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions