update.chantrics() will update a model that has been adjusted by
adj_loglik(). It passes all arguments to the standard stats::update()
function.
# S3 method for chantrics update(object, ...)
| object | A   | 
    
|---|---|
| ... | Additional arguments to the call, passed to   | 
    
The fitted, adjusted "chantrics" object.
The function cannot change any arguments passed to the adj_loglik()
function. To change any of these arguments, re-run adj_loglik().
Passing evaluate = FALSE is not supported, if this is required,
run stats::update() on the unadjusted object.
# from Introducing Chandwich. set.seed(123) x <- rnorm(250) y <- rnbinom(250, mu = exp(1 + x), size = 1) fm_pois <- glm(y ~ x + I(x^2), family = poisson) fm_pois_adj <- adj_loglik(fm_pois) fm_pois_small_adj <- update(fm_pois_adj, formula = . ~ . - I(x^2)) summary(fm_pois_small_adj)#> MLE SE adj. SE #> (Intercept) 1.0550 0.04049 0.08111 #> x 0.9017 0.02884 0.06939#> MLE SE adj. SE #> (Intercept) 1.447 0.03067 0.1109