Skip to content
Prev 7548 / 29559 Next

generate simulation data for a theoretical spatial model

rusers.sh,

demo(ugsim)

in package gstat gives an example how to generate unconditional Gaussian 
simulations. Specifying the covariates in a formula and the parameter 
vector beta will add a deterministic trend to that.

If, in addition to that, you want unconditionally simulated residuals 
added to a trend effect that is simulated as well, look at rmvnorm in 
package mvtnorm how to generate realisations from the multivariate 
normal distribution with given mean and covariance; finally, combine the 
two.
--
Edzer
rusers.sh wrote: