jamovi / jmv

jamovi for R
https://www.jamovi.org
55 stars 27 forks source link

Make emmeans more robust for complex models #363

Closed raviselker closed 1 year ago

raviselker commented 1 year ago

Previously, the reference grid that is used to compute the estimated marginal means grew exponentially with the number of predictors in the model. As a consequence, the reference grid could grow so big that the emmeans analysis threw an error.

This commit marks all predictors that are not of interest for the emmeans plot/table as so-called "nuisance parameters", so that the reference grid averages over all these parameters and thus remains small in size, even when the number of parameters grow.

See https://cran.r-project.org/web/packages/emmeans/vignettes/messy-data.html

Closes jamovi/jamovi#1259