Learn R Programming

qtlDesign (version 0.81)

Power calculations: Power, sample size, and detectable effect size calculations

Description

Power, sample size, and minimum detectable effect size calculations are performed for backcross, F2 intercross, and recombinant ingred (RI) lines.

Usage

powercalc(cross,n,effect,sigma2,thresh=3,alpha=1,theta=0)
detectable(cross,n,effect=NULL,sigma2,power=0.8,thresh=3,alpha=1,theta=0)
samplesize(cross,effect,sigma2,power=0.8,thresh=3,alpha=1,theta=0)

Arguments

cross
String indicating cross type which is "bc", for backcross, "f2" for intercross, and "ri" for recombinant inbred lines.
n
Sample size
effect
The QTL effect we want to detect. For powercalc and samplesize this is a numeric (vector). For detectable it specifies the relative magnitude of the additive and dominance components for the intercross.
sigma2
Error variance
power
Proportion indicating power desired
thresh
LOD threshold for declaring significance
alpha
Selection fraction
theta
Recombination fraction corresponding to a marker interval

Value

  • For powercalc the power is returned. For detectable the effect size detectable is returned. For backcross and RI lines this is the effect of an allelic substitution. For F2 intercross the additive and dominance components are returned.

Details

These calculations are done assuming that the asymptotic chi-square regimes apply. A warning message is printed if the effective sample size is less than 30 and either alpha is less than 1 or theta is greater than 0. First we calculate the effective sample size using the width of the marker interval and the selection fraction. The QTL is assumed to be in the middle of the marker interval. Then we use the fact that the non-centrality parameter of the likelihood ration test is $m*\delta^2$, where $m$ is the effctive sample size and $\delta$ is the QTL effect measured as the deviation of the genotype means from the overall mean. The chi-squared approximation is used to calculate the power. The minimum detectable effect size is obtained by solving the power equation numerically using uniroot. The theory behind the information calculations is described by Sen et. al. (2005).

A key input is the error variance which is generally unknown. The function error.var estimates the error variance using estimates of the biological variance and genetic variance. Another useful input is the effect segregating in a cross, which can be calculated using gmeans2model.

References

Sen S, Satagopan JM, Churchill GA (2005) Quantitative trait locus study design from an information perspective. Genetics, 170:447-64.

See Also

uniroot. error.var, gmeans2effect.

Examples

Run this code
powercalc("bc",100,5,sigma2=1,alpha=1,theta=0)
detectable("bc",100,sigma2=1)

Run the code above in your browser using DataLab