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