View source: R/format_mr_results2.R
power_prune | R Documentation |
When there are duplicate summary sets for a particular exposure-outcome combination, this function keeps the exposure-outcome summary set with the highest expected statistical power. This can be done by dropping the duplicate summary sets with the smaller sample sizes. Alternatively, the pruning procedure can take into account instrument strength and outcome sample size. The latter is useful, for example, when there is considerable variation in SNP coverage between duplicate summary sets (e.g. because some studies have used targeted or fine mapping arrays). If there are a large number of SNPs available to instrument an exposure, the outcome GWAS with the better SNP coverage may provide better power than the outcome GWAS with the larger sample size.
power_prune(dat, method = 1, dist.outcome = "binary")
dat |
Results from |
method |
Should the duplicate summary sets be pruned on the basis of sample size alone ( |
dist.outcome |
The distribution of the outcome. Can either be |
data.frame with duplicate summary sets removed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.