Description Usage Arguments Author(s) See Also Examples
Coerce ls_means
Objects to data.frame
s
1 2 | ## S3 method for class 'ls_means'
as.data.frame(x, ..., add_levels = TRUE)
|
x |
an |
... |
currently not used. |
add_levels |
add |
Rune Haubo B. Christensen
1 2 3 4 5 6 7 8 9 10 11 | # Fit example model:
data("cake", package="lme4")
cake$Temp <- factor(cake$temperature, ordered = FALSE)
model <- lmer(angle ~ recipe + Temp + (1|recipe:replicate), cake)
# Extract LS-means:
head(lsm <- ls_means(model))
# Coerce LS-means objects to data.frames:
head(as.data.frame(lsm))
head(as.data.frame(lsm, add_levels=FALSE))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.