Skip to contents

Set the coefficients in a model to different values and return the modified object (internal function)

Usage

set_coef(model, coefs, ...)

# S3 method for default
set_coef(model, coefs, ...)

# S3 method for polr
set_coef(model, coefs, ...)

# S3 method for glmmPQL
set_coef(model, coefs, ...)

# S3 method for afex_aov
set_coef(model, coefs, ...)

# S3 method for glimML
set_coef(model, coefs, ...)

# S3 method for betareg
set_coef(model, coefs, ...)

# S3 method for multinom
set_coef(model, coefs, ...)

# S3 method for crch
set_coef(model, coefs, ...)

# S3 method for hlxr
set_coef(model, coefs, ...)

# S3 method for gamlss
set_coef(model, coefs, ...)

# S3 method for glmmTMB
set_coef(model, coefs, ...)

# S3 method for glmx
set_coef(model, coefs, ...)

# S3 method for merMod
set_coef(model, coefs, ...)

# S3 method for lmerModLmerTest
set_coef(model, coefs, ...)

# S3 method for lmerMod
set_coef(model, coefs, ...)

# S3 method for hurdle
set_coef(model, coefs, ...)

# S3 method for zeroinfl
set_coef(model, coefs, ...)

# S3 method for rlmerMod
set_coef(model, coefs, ...)

# S3 method for selection
set_coef(model, coefs, ...)

# S3 method for scam
set_coef(model, coefs, ...)

# S3 method for glm
set_coef(model, coefs, ...)

# S3 method for lm
set_coef(model, coefs, ...)

Arguments

model

object to modify

coefs

vector of coefficients to insert in the model object

Value

Model object of the same class as the model argument, but with different stored coefficients.

Details

To compute the variance of marginal effects we need to take the Jacobian with