simulate_gnls: Simulate fitted values from an object of class gnls
Description
Simulate values from an object of class gnls. Unequal variances,
as modeled using the ‘weights’ option are supported, and there is experimental
code for dealing with the ‘correlation’ structure.
parameter simulation level, 0: for fitted values, 1: for simulation from
fixed parameters (assuming a fixed vcov matrix), 2: for simulation considering the
uncertainty in the residual standard error (sigma), this returns data which
will appear similar to the observed values
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.