| simumix constructor | R Documentation |
Constructor for simumix objects.
The function simumix creates a simumix object from
a tabfreq object.
The function as.simumix is an alias for simumix function.
is.simumix tests if an object is a valid simumix object.
Note: to get the manpage about simumix, please type 'class ? simumix'.
simumix(tab,which.loc=NULL,ncontri=1) as.simumix(tab,which.loc=NULL,ncontri=1) is.simumix(x)
tab |
a simugeno object created with constructor simugeno |
which.loc |
a character vector giving the chosen loci for the genotypes simulation. The default is set to NULL,
which corresponds to all the loci of the |
ncontri |
integer vector giving the number of individuals. If there are several populations,
|
x |
an object |
DNA mixtures are created by randomly drawing individual genotypes
with a uniform probability.
If there are N individuals in the sample (the simugeno object), then
each individual has a probability of 1/N to be selected.
For simumix and as.simumix, a simumix object. For is.simumix, a logical.
Hinda Haned h.haned@nfi.minvenj.nl
"simumix", simugeno for creating a simugeno object.
## Not run:
data(Tu)
tab<-simugeno(tabfreq(Tu),n=1200)
#simulation of a 3-person mixture characterized with markers FGA, TH01 and TPOX
simumix(tab,which.loc=c('FGA','TH01', 'TPOX') , n =3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.