Skip to content

GLMM - Cholesky factorization failed #349

@timothyslau

Description

@timothyslau

Julia 1.4.2
MixedModels v"3.0.0-DEV"
running

using CSV, DataFrames, StatsBase, MixedModels
orange = DataFrame(CSV.read(download("https://raw.githubusercontent.com/timothyslau/misc/master/orange.csv")))
categorical!(orange,:Tree)
orange.age_z = zscore(orange[:,:age])
fit(GeneralizedLinearMixedModel, @formula(circumference ~ 1 + age_z + (1 | Tree)), orange, Poisson(), LogLink())

results in
PosDefException: matrix is not positive definite; Cholesky factorization failed.

but these work:

fit(LinearMixedModel, @formula(circumference ~ 1 + age + (1 | Tree)), orange)
fit(GeneralizedLinearMixedModel, @formula(circumference ~ 1 + age_z + (1 | Tree)), orange, Poisson(), LogLink(), fast=true)

https://discourse.julialang.org/t/glmm-cholesky-factorization-failed/43925

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions