strategy1: MR Strategy 1

Description Usage Arguments

View source: R/scan.r

Description

How to choose the result for a set of different MR analysies? Simple strategy: Use Wald ratio if only one SNP Use IVW if more than one SNP and heterogeneity is low Use weighted mode if more than some minimum number of SNPs and heterogeneity is high

Usage

1
strategy1(dat, het_threshold = 0.05, ivw_max_snp = 1)

Arguments

dat

Output from harmonise_data function

het_threshold

The p-value threshold for Cochran's Q - if lower than this threshold then run weighted mode. Default p = 0.05

ivw_max_snp

Maximum SNPs to allow IVW result even if heterogeneity is high. Default = 1


explodecomputer/tryx documentation built on July 26, 2020, 2:45 p.m.