simlinkedSTR {genealogy} | R Documentation |
This function generates
simlinkedSTR(n, loci, r, theta)
n |
Number of individuals to sample |
loci |
Number of linked loci |
r |
The recombination fraction between loci. |
theta |
Theta at each locus |
~~ If necessary, more details than the __description__ above ~~
~Describe the value returned If it is a LIST, use
comp1 |
Description of `comp1' |
comp2 |
Description of `comp2' |
...
....
~~further notes~~
Ian Wilson
~put references to the literature/web site here ~
~~objects to SEE ALSO as ~~fun~~
, ~~~
##---- Should be DIRECTLY executable !! ---- ##-- ==> Define data, use random, ##-- or do help(data=index) for the standard data sets. ## The function is currently defined as function(n,loci,r,theta) { #__declspec(dllexport) void simulatelinkedSTR(int *n, int *loci, # int *r, double *itheta, int *data) nr _ as.integer(length(r)); if (length(theta)==1) theta_rep(theta,loci); a_.C("simulatelinkedSTR", as.integer(n), as.integer(loci), as.double(r), nr, as.double(theta), d=integer(n*loci), ); matrix(a$d,ncol=loci); }