effCoef | R Documentation |
This function uses the get_parameters
function in the insight
package to get a vector of regression coefficients for use in the effects package. It converts the two-column data.frame
returned by get_parameters
to a vector of named elements.
effCoef(mod, ...) ## Default S3 method: effCoef(mod, ...)
mod |
A model object with a linear predictor representing fixed effects. |
... |
Additional parameter passed to |
The get_parameters
function can be used to retrieve the coefficient estimates corresponding to a linear predictor for many regression models, and return them as a two column data.frame
, with regressor names in the first column and estimates in the second column. This function converts this output to a named vector as is expected by the effects
package.
A vector of coefficient estimates
Sanford Weisberg sandy@umn.edu
get_parameters
, and vignette Regression Models Supported by the effects Package
m1 <- lm(prestige ~ type + income + education, Duncan) effCoef(m1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.