You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found that sometimes profile(m) throws ERROR: AssertionError: i ∈ iallowed || iszero(A[i, j]), which mutates the model m.
MWE with a semi-synthesized portion of the data from my usecase:
Setup
using CSV
using MixedModels
x = CSV.read(download("https://gist.githubusercontent.com/yjunechoe/af4a8dd3e2b0343fe3818e93dba8c81d/raw/x.csv"), Table);
m =fit(MixedModel, @formula(y ~ x1 * x2 + (1| g)), x);
m
Linear mixed model fit by maximum likelihood
y ~ 1 + x1 + x2 + x1 & x2 + (1 | g)
logLik -2 logLik AIC AICc BIC
-860.9412 1721.8823 1733.8823 1733.9669 1763.3289
Variance components:
Column Variance Std.Dev.
g (Intercept) 0.0022759 0.0477069
Residual 0.3264997 0.5714015
Number of obs: 1000; levels of grouping factors: 3
Fixed-effects parameters:
─────────────────────────────────────────────────────────
Coef. Std. Error z Pr(>|z|)
─────────────────────────────────────────────────────────
(Intercept) -1.3144 0.0726041 -18.10 <1e-72
x1: a2 1.1196 0.0963029 11.63 <1e-30
x2: b2 -0.0839275 0.0876926 -0.96 0.3385
x1: a2 & x2: b2 0.189803 0.105979 1.79 0.0733
─────────────────────────────────────────────────────────
I've found that sometimes
profile(m)
throwsERROR: AssertionError: i ∈ iallowed || iszero(A[i, j])
, which mutates the modelm
.MWE with a semi-synthesized portion of the data from my usecase:
Setup
Surprising behavior
Full stacktrace
The text was updated successfully, but these errors were encountered: