runMonteCarlo {RVS} | R Documentation |
Given a number of simulations and a distribution of variants in the founders, this function simulates possbile outcomes of the pedigree and returns a sharing probability.
runMonteCarlo(procPed, founderDist, nSim)
procPed |
pedigree that has been through |
founderDist |
custom distribution among founders. Only used when simulating probability with nSim |
nSim |
number of simulations used in monte carlo calculation |
If the number of simulations is greater than 20,000 then the computation is done in parallel (as long as the package parallel is available)
sharing probability between all carriers in pedigree