View source: R/bootstrap_glm.R
bootstrap_parametric_predict | R Documentation |
This is the workhorse for the estimate_mean_response()
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_predict(fit, newdata, reps)
fit |
|
newdata |
new data set used to construct the predictions. |
reps |
scalar; number of bootstrap replications to perform. |
matrix with the same number of rows as rows of newdat
and
reps
columns. Each row contains the bootstrap estimates of the
corresponding prediction.
## Not run:
fit <- glm(mpg ~ hp, data = mtcars)
bootstrap_parametric_predict(fit, mtcars, reps = 4999)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.