power.casectrl(...)
power.casectl
function contained serious errors and has been
replaced by GPC
,
GeneticPower.Quantitative.Factor
, or
GeneticPower.Quantitative.Numeric
as appropriate.
In specific, the power.casectl
function used an expected
contingency table to create the test statistic that was
erroneously based on the underlying null, rather than on the
marginal totals of the observed table. In addition, the modeling of
dominant and recessive modes of inheritance had assumed a "perfect"
genotype with no disease, whereas in reality a dominant or recessive
mode of inheritance simply means that two of the genotypes will have
an identical odds ratio compared to the 3rd genotype (the other
homozygote).