set_coef: Internal function to set coefficients Set the coefficients in...

Description Usage Arguments Details Value

View source: R/set_coef.R

Description

Internal function to set coefficients

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
set_coef(model, coefs)

## Default S3 method:
set_coef(model, coefs)

## S3 method for class 'polr'
set_coef(model, coefs)

## S3 method for class 'betareg'
set_coef(model, coefs)

## S3 method for class 'crch'
set_coef(model, coefs)

## S3 method for class 'hlxr'
set_coef(model, coefs)

## S3 method for class 'glmx'
set_coef(model, coefs)

## S3 method for class 'multinom'
set_coef(model, coefs)

## S3 method for class 'hurdle'
set_coef(model, coefs)

## S3 method for class 'zeroinfl'
set_coef(model, coefs)

## S3 method for class 'glm'
set_coef(model, coefs)

## S3 method for class 'lm'
set_coef(model, coefs)

Arguments

model

object to modify

coefs

vector of coefficients to insert in the model object

Details

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

Value

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


marginaleffects documentation built on Oct. 19, 2021, 1:09 a.m.