sim {qgen} | R Documentation |
This function simulates data sets according to the sampling design and
the parameters given by a paraDATA
-object.
sim(paraDATA, file=FALSE, path="~/qgen/")
paraDATA |
an object of class paraDATA |
file |
Logical flag: Should the paraDATA object be
written to path/"sim.rda"? |
path |
indicating the path where the file sim.rda should be written |
a paraDATA
–object, with the slots:
orig |
full |
supl |
full |
para |
full, the realized sampling variance-covariance
components; phS=NULL |
DATA |
full; the simulated data set |
spec |
NULL |
Name: simulation
my.parameters <- the(file=FALSE) # defines a paraDATA object my.paraDATA <- sim(my.parameters) # simulates the corresponding data set data.set <- my.paraDATA@DATA@dat # extracts the simulated data # from the paraDATA--object