Modifying model parameters.
These functions can be used to change the size of a model's fixed effects, its random effect variance/covariance matrices, or its residual variance. This gives you more control over simulations from the model.
1 2 3 4 5 6 7 8 9
a fitted model object.
new parameter values.
New values for
VarCorr are interpreted as variances and covariances, not standard deviations and
correlations. New values for
scale are interpreted on the standard deviation scale.
This means that both
object unchanged, as you would expect.
sigma<- will only change the residual standard deviation,
scale<- will affect both
These function can be used to change the value of individual parameters, such as a single fixed effect coefficient, using standard R subsetting commands.
getData if you want to modify the model's data.
1 2 3 4
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.