Learn R Programming

insight (version 0.20.5)

get_parameters.emmGrid: Get model parameters from estimated marginal means objects

Description

Returns the coefficients from a model.

Usage

# S3 method for emmGrid
get_parameters(x, summary = FALSE, merge_parameters = FALSE, ...)

# S3 method for emm_list get_parameters(x, summary = FALSE, ...)

Value

A data frame with two columns: the parameter names and the related point estimates.

Arguments

x

A fitted model.

summary

Logical, indicates whether the full posterior samples (summary = FALSE)) or the summarized centrality indices of the posterior samples (summary = TRUE)) should be returned as estimates.

merge_parameters

Logical, if TRUE and x has multiple columns for parameter names (like emmGrid objects may have), these are merged into a single parameter column, with parameters names and values as values.

...

Currently not used.

Examples

Run this code
if (FALSE) { # require("emmeans", quietly = TRUE)
data(mtcars)
model <- lm(mpg ~ wt * factor(cyl), data = mtcars)

emm <- emmeans(model, "cyl")
get_parameters(emm)

emm <- emmeans(model, pairwise ~ cyl)
get_parameters(emm)
}

Run the code above in your browser using DataLab