Additional keywords: Best linear unbiased Estimator (BLUE), adjusted means, mixed model, fixed effects, linear combination, contrast, R
After fitting a model with mmer()
of the sommer package - is it possible to obtain estimated marginal means (emmeans()
) / least squares means (LS-means) from an mmer
object? Maybe similar to the predict()
function with ASReml-R v3?
Actually, I would I want multiple things and maybe it is clearer to ask for them separately:
- The emmeans themselves and their
- Standard errors (s.e.)
- as a column next to the means of each level
- variance-covariance matrix of emmeans (see
predict(..., vcov=T)
) - Contrasts between means and their
- Standard errors of a difference (s.e.d.)
- All pairwise differences between means, preferably with a post hoc test (see
emmeans(mod, pairwise ~ effect, adjust="Tukey")
- S.e.d. matrix (see
predict(..., sed=T)
) - Minimum, average and maximum s.e.d.
- Custom contrasts
So yeah, basically a mix of predict()
and emmeans()
would be the goal here.
Thanks in advance!