Displaying 1 result from an estimated 1 matches for "reprodict".
Did you mean:
reproduct
2005 Jul 01
2
loop over large dataset
...these datasets to perform a simulation of of haplotype
coalescence over a pedigree (the datestes themselves are pedigree
information). I created a new dataset (same number of rows as the
pedigree dataset, 2 colums) and I use a looping functions to assign
haplotypes according to a standrd biological reprodictive process (i.e.
meiosis, sexual reproduction).
My code is someting like:
off = function(sire, dam){ # simulation of reproduction, two inds
sch.toll = round(runif(1, min = 1, max = 2))
dch.toll = round(runif(1, min = 1, max = 2))
s.gam = sire[,sch.toll]
d.gam = dam[,dch.toll]
offsprin...