Learn R Programming

marginaleffects (version 0.8.0)

get_coef: Get a named vector of coefficients from a model object (internal function)

Description

Get a named vector of coefficients from a model object (internal function)

Usage

get_coef(model, ...)

# S3 method for default get_coef(model, ...)

# S3 method for polr get_coef(model, ...)

# S3 method for afex_aov get_coef(model, ...)

# S3 method for betareg get_coef(model, ...)

# S3 method for multinom get_coef(model, ...)

# S3 method for brmultinom get_coef(model, ...)

# S3 method for bracl get_coef(model, ...)

# S3 method for brmsfit get_coef(model, ...)

# S3 method for gamlss get_coef(model, ...)

# S3 method for glmmTMB get_coef(model, ...)

# S3 method for merMod get_coef(model, ...)

# S3 method for lmerModLmerTest get_coef(model, ...)

# S3 method for lmerMod get_coef(model, ...)

# S3 method for mblogit get_coef(model, ...)

# S3 method for gam get_coef(model, ...)

# S3 method for selection get_coef(model, ...)

# S3 method for scam get_coef(model, ...)

Value

A named vector of coefficients. The names must match those of the variance matrix.

Arguments

model

Model object

...

Additional arguments are passed to the predict() method supplied by the modeling package.These arguments are particularly useful for mixed-effects or bayesian models (see the online vignettes on the marginaleffects website). Available arguments can vary from model to model, depending on the range of supported arguments by each modeling package. See the "Model-Specific Arguments" section of the ?marginaleffects documentation for a non-exhaustive list of available arguments.