Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jun 13, 2024
1 parent 59bd172 commit 285a512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/compute_variances.R
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@
}

# for observation level approximation
fe_null <- .safe(as.numeric(lme4::fixef(model_null)))
fe_null <- .safe(as.numeric(.collapse_cond(lme4::fixef(model_null))))
pmean <- .safe(as.numeric(stats::plogis(fe_null - 0.5 * sum(revar_null) * tanh(fe_null * (1 + 2 * exp(-0.5 * sum(revar_null))) / 6)))) # nolint

# sanity check - clmm-models are "binomial" but have no pmean
Expand Down

0 comments on commit 285a512

Please sign in to comment.