-
Notifications
You must be signed in to change notification settings - Fork 49
Closed
Labels
Description
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