dummy.coef.lmm: Marginal Mean Values For Linear Mixed Model

View source: R/dummy.coef.R

dummy.coef.lmmR Documentation

Marginal Mean Values For Linear Mixed Model

Description

Compute the marginal mean (via the emmeans package) for each combination of categorical covariates. When there is no numeric covariate, this outputs all the mean values fitted by the model.

Usage

## S3 method for class 'lmm'
dummy.coef(object, drop = TRUE, ...)

Arguments

object

a lmm object.

drop

[logical] should combinations of covariates that do no exist in the original dataset be removed?

...

arguments passed to emmeans.

Value

A data.frame containing the level for which the means have been computed (if more than one), the estimated mean (estimate), standard error (se), degree of freedom (df), and 95% confidence interval (lower and upper).


LMMstar documentation built on Nov. 9, 2023, 1:06 a.m.