| MRInput-class {MRZero} | R Documentation |
MRInput Class
Description
An object containing the four vectors of summary statistics required to calculate Mendelian randomization estimates.
Details
The beta-coefficients are assumed to be estimated for uncorrelated (independent) genetic variants, although a correlation matrix can be specified if the variants are correlated in their distributions. We also assume that the beta-coefficients for associations with the exposure and with the outcome are uncorrelated (corresponding to a two-sample Mendelian randomization analysis), although correlation between associations with the exposure and with the outcome generally have little impact on causal estimates or standard errors. Estimates can either be specified by the user, or extracted from the PhenoScanner tool.
Slots
betaXA numeric vector of beta-coefficient values for genetic associations with the first variable (often referred to as the exposure, risk factor, or modifiable phenotype).
betaYA numeric vector of beta-coefficient values for genetic associations with the second variable (often referred to as the outcome). For a disease outcome, the beta coefficients are log odds estimates from logistic regression analyses.
betaXseThe standard errors associated with the beta-coefficients in
betaX.betaYseThe standard errors associated with the beta-coefficients in
betaY.correlationThe matrix of correlations between genetic variants. If this variable is not provided, then we assume that genetic variants are uncorrelated.
exposureThe name of the exposure variable.
outcomeThe name of the outcome variable.
snpsThe names of the genetic variants (SNPs) included in the analysis. The slots
exposure,outcome, andsnpsare not required, but may be useful for keeping track of variousMRInputobjects. They are also used by themr_plotfunction.effect_alleleThe name of the effect allele for each SNP. The beta-coefficients are the associations with the exposure and outcome per additional copy of the effect allele.
other_alleleThe name of the non-effect allele.
eafThe expected allele frequencies (numeric). The slots
effect_allele,other_allele, andeafare neither required, nor currently used in the MendelianRandomization package. They are included for future compatibility with the MR-Base suite of functions.
See Also
extract.pheno.csv() for a description of how the above values can be extracted from PhenoScanner http://www.phenoscanner.medschl.cam.ac.uk/.