Description Usage Arguments Value
Generate simulated predictions from a linear model that account for model and parameter error
1 | better_sim.lm(object, nsim, newdata, resid_error = FALSE)
|
object |
an object of class lm or glm |
nsim |
number of simulations per observation to generate |
newdata |
dataframe containing the observations to generate predictions for |
resid_error |
should the model residual error be added to predictions, default is FALSE |
a matrix of predictions nrow(newdata) x nsim columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.