Get model parameters from estimated marginal means objects
Returns the coefficients from a model.
## S3 method for class 'emmGrid' get_parameters(x, summary = FALSE, merge_parameters = FALSE, ...) ## S3 method for class 'emm_list' get_parameters(x, summary = FALSE, ...)
x |
A fitted model. |
summary |
Logical, indicates whether the full posterior samples
( |
merge_parameters |
Logical, if |
... |
Currently not used. |
A data frame with two columns: the parameter names and the related point estimates.
Note that emmGrid
or emm_list
objects returned by
functions from emmeans have a different structure compared to
usual regression models. Hence, the Parameter
column does not
always contain names of variables, but may rather contain
values, e.g. for contrasts. See an example for pairwise
comparisons below.
data(mtcars) model <- lm(mpg ~ wt * factor(cyl), data = mtcars) if (require("emmeans", quietly = TRUE)) { emm <- emmeans(model, "cyl") get_parameters(emm) emm <- emmeans(model, pairwise ~ cyl) get_parameters(emm) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.