get_new_data | R Documentation |
get new dataset for making predictions
get_new_data(data, predictor, fixed_vals)
data |
a fitted model object created by lm() or glm() or geeglm() or glmmTMB() |
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. |
fixed_vals |
a one-row data frame containing values to use for predictors other than the predictor of interest, obtained by a call to get_fixed |
A data frame for which all variables except predictor have fixed values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.