sim {qgen}R Documentation

simulation of quantitative genetic data sets

Description

This function simulates data sets according to the sampling design and the parameters given by a paraDATA-object.

Usage

sim(paraDATA, file=FALSE, path="~/qgen/")

Arguments

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

Value

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

Note

Name: simulation

Examples

   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

[Package qgen version 0.03-02 Index]