parameter simulation level, 0: for fitted values, 1: for simulation from
fixed parameters (assuming a fixed vcov matrix), 2: simulation from sampling
both from the parameters and the residuals, 3: for simulation considering the
uncertainty in the residual standard error only (sigma) and fixing the
parameter estimates at their original value; this will result in simulations
similar to the observed values.
resid.type
either ‘none’, “resample”, “normal” or “wild”.
value
either ‘matrix’ or ‘data.frame’
data
the data argument is needed when using this function inside user defined functions.
...
additional arguments (it is possible to supply a newdata this way)
It uses function mvrnorm to generate new values for the coefficients
of the model using the Variance-Covariance matrix vcov. This variance-covariance matrix
refers to the one for the parameters ‘beta’, not the one for the residuals.