hwe: Relative genotypic frequencies under HWE

View source: R/hwe.R

hweR Documentation

Relative genotypic frequencies under HWE

Description

Compute relative genotypic frequencies for a given relative allelic frequency

Usage

hwe(raf)

Arguments

raf

Relative minor allele frequency for the B allele.

Details

For a bi-allelic SNP with genotypes AA, AB and BB, with a relative allele frequency q for the B allele, this function returns the corresponding relative genotypic frequencies. It is not intended to be called directly by the user. To conduct power calculations, use sim.snp.expsurv.power or the convenience wrapper function survSNP.power.table.

Value

A vector of length three relative genotypic frequencies.

Author(s)

Kouros Owzar, Zhiguo Li, Nancy Cox, Sin-Ho Jung and Chanhee Yi

References

Kouros Owzar, Zhiguo Li, Nancy Cox and Sin-Ho Jung. Power and Sample Size Calculations for SNP Association Studies with Censored Time-to-Event Outcomes. https://onlinelibrary.wiley.com/doi/full/10.1002/gepi.21645

Examples

censbnd(0.1,hwe(0.1),0.9)

survSNP documentation built on Feb. 16, 2023, 10:10 p.m.