An internal function of binomPower, which actually calculates the p value.
simPower(ndads,mm,vv,tau2,nperms,nbins)
Returns a p value for a given set of conditions over a specificed number of bootstrap permutations.
a (non-empty) numeric value indicating the number of dads.
a (non-empty) numeric value indicating the mean number of offspring per dad per bin (normal dist). mm must be less than vv.
a (non-empty) numeric value indicating the variance in offspring per dad per bin (normal dist). vv must be great than mm.
a (non-empty) numeric value indicating the dad effect (narrow-sense heritability ~ tau2/(tau2+(pi/sqrt(3))^2)).
a (non-empty) numeric value indicating the number of bootstrap permutations to use for caluclating a p value.
a (non-empty) numeric value indicating the number of bins, data are pooled before analysis.