para_boot | R Documentation |
carry out parametric bootstrap to get CIs for model predictions
para_boot(model, new_data, predictor, nboot, conf_level = 0.95)
model |
a fitted model object created by lm() or glm() or geeglm() |
new_data |
data frame with data for which to make predictions and generate bootstrap CIs |
predictor |
the covariate for which to make predictions. other predictors in the model will be held constant at their median value, or the most commonly observed value in the dataset. |
nboot |
number of bootstrap iterations. Defaults to 1000. Ignored if boot is FALSE. |
conf_level |
confidence level as a proportion, default is 0.95 for 95 percent confidence |
a data.frame with variables CIlower and CIupper, the lower and upper bounds of the parametric bootstrap CI
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.