Estimate variance in a quantitative trait induced by QTL.
Usage
qtlVar(lrt, prdat, simulation=FALSE, nsim=25)
Arguments
lrt
a data frame (a, d, g, e, ...). For instance, its components should be corresponding to those in an object of scanOne when polygenic variation is accounted for.
prdat
a 3-D array that provides probabilities of genotypes "AA", "AB" and "BB". If prDat is an object of genoProb, then prdat can be prDat$pr.
simulation
whether to use simulations to estimate the variance explained by QTL.
nsim
number of simulations to perform if simulation is TRUE.
Value
A vector displaying the estimated variance at each loci.