simPower: An internal function of binomPower, which actually calculates...

Description Usage Arguments Value Examples

View source: R/simPower.R

Description

An internal function of binomPower, which actually calculates the p value.

Usage

1
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

1
#not run

multiDimBio documentation built on April 14, 2020, 5:41 p.m.