Description Usage Arguments Details Value See Also Examples
View source: R/adj_loglik_methods.R
update.chantrics()
will update a model that has been adjusted by
adj_loglik()
. It passes all arguments to the standard stats::update()
function.
1 2 |
object |
A |
... |
Additional arguments to the call, passed to |
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.
The fitted, adjusted "chantrics"
object.
1 2 3 4 5 6 7 8 9 10 | # 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)
fm_pois_smallest_adj <- update(fm_pois_adj, formula = . ~ 1)
summary(fm_pois_smallest_adj)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.