View source: R/bootstrap_glm_null.R
bootstrap_parametric_null | R Documentation |
This is the workhorse for the compare_models()
function when a
generalized linear model is specified and parametric bootstrap is required.
This is not meant to be called by the user directly.
bootstrap_parametric_null(fit1, fit0, reps)
fit1 |
|
fit0 |
|
reps |
scalar; number of bootstrap replications to perform. |
vector of length reps
containing the test statistic from each
bootstrap replication. It also has an attribute containing an ANOVA table
comparing the two models.
## Not run:
fit1 <- glm(mpg ~ hp, data = mtcars)
fit0 <- glm(mpg ~ 1, data = mtcars)
bootstrap_parametric_null(fit, fit0, reps = 4999)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.