Description Usage Arguments Value Author(s) References Examples
Determine the minimum number of cases (Ncmin
), required to detect: either a change from p0
(haplogroup frequency in controls) to p1
(haplogroup frequency in cases), or a given OR, with a predefined confidence interval, in a study with Nh
haplogroups.
Note: I assume that case-control equations are valid for cohorts with a balanced number of cases and controls.
This function may not be generalizable for all studies involving mtDNA haplogroups.
1 2 |
p0 |
the frequency of the haplogroup in the control population, (that is, the controls among exposed). It depends on haplogroup baseline frequency. |
Nh |
number of haplogroup categories. Usually 10 haplogroups plus one category for rare haplogroups: |
OR.cas.ctrl |
|
power |
the power to detect a given OR in my study (usually 80-90). |
sig.level |
the alpha error accepted. Can take 3 possible values: |
Gives the result in a data frame, easy to print in a plot.
Author and maintainer: Aurora Baluja. Email: mariauror@gmail.com
1. DC Samuels, AD Carothers, R Horton, PF Chinnery. The Power to Detect Disease Associations with Mitochondrial DNA Haplogroups. AJHG, 2006. 78(4):713-720. DOI:10.1086/502682.
2. Source code: github.com/aurora-mareviv/mthapower.
3. Shiny app: aurora.shinyapps.io/mtDNA_power_calc.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.