linkage.power(x, N=100, available=x$available, afreq=c(0.5, 0.5), loop_breakers=NULL, threshold=NULL, seed=NULL)
linkdat
object.breakLoops
.maxonly=FALSE
, the output includes the percentage of simulated markers having LOD larger than threshold
.linkres
object, which is returned invisibly after a summary is printedSNPsim
, which implements the algorithm used by SLINK: SNPsim
, summary.linkres
# Note: In the cases below, N is set very low. Increase to get more interesting results.
data(toyped)
x = linkdat(toyped, model=1)
linkage.power(x, N=5)
# X-linked example:
data(Xped)
y = linkdat(Xped, model=4)
linkage.power(y, N=1)
# Loop example:
z = addOffspring(cousinPed(1), father=7, mother=8, noffs=1, aff=2)
z = setModel(z, 2)
linkage.power(z, N=1, loop_breaker=7)
Run the code above in your browser using DataLab