mr_mvgmm | R Documentation |
The mr_mvgmm
function performs multivariable Mendelian randomization via the generalized method of moments method.
mr_mvgmm(object, nx, ny, cor.x = NULL, robust = TRUE, alpha = 0.05, ...)
## S4 method for signature 'MRMVInput'
mr_mvgmm(object, nx, ny, cor.x = NULL, robust = TRUE, alpha = 0.05, ...)
object |
An |
nx |
Vector of sample sizes used to compute genetic associations with the exposure (one for each exposure). |
ny |
The sample size used to compute genetic associations with the outcome. |
cor.x |
Correlation matrix for exposures. Default is to assume the exposures are uncorrelated. |
robust |
Indicates whether overdispersion heterogeneity is accounted for in the model. Default is TRUE. |
alpha |
The significance level used to calculate the confidence interval. The default value is 0.05. |
... |
Additional arguments to be passed to the optimization routines to calculate GMM estimates and overdispersion parameter. |
Robust inference in two-sample multivariable Mendelian randomization using the generalized method of moments. The method accounts for overdispersion heterogeneity in genetic variant-outcome associations.
The output from the function is an MVGMM
object containing:
Robust |
|
Exposure |
A character vector with the names given to the exposure. |
Outcome |
A character string with the names given to the outcome. |
Correlation |
The matrix of genetic correlations if supplied. If not supplied, then an identity matrix will be returned. |
ExpCorrelation |
|
CondFstat |
A vector of conditional F-statistics (one for each exposure). |
Estimate |
A vector of causal estimates. |
StdError |
A vector of standard errors of the causal estimates. |
CILower |
The lower bounds of the causal estimates based on the estimated standard errors and the significance level provided. |
CIUpper |
The upper bounds of the causal estimates based on the estimated standard errors and the significance level provided. |
Overdispersion |
The estimate of the overdispersion parameter. If this is negative, then a value of zero is used in the method. |
Pvalue |
The p-values associated with the estimates (calculated as Estimate/StdError as per Wald test) using a normal distribution. |
Alpha |
The significance level used when calculating the confidence intervals. |
Heter.Stat |
Heterogeneity statistic (Cochran's Q statistic) and associated p-value (for non-robust model only): the null hypothesis is that all genetic variants estimate the same causal parameter; rejection of the null is an indication that one or more genetic variants may be pleiotropic. If the robust option is set to |
Description of the generalized method of moments: Hansen, L. P. (1982). Large sample properties of generalized method of moments estimators. Econometrica, pp.1029-1054.
mr_mvgmm(mr_mvinput(bx = cbind(ldlc, hdlc, trig), bxse = cbind(ldlcse, hdlcse, trigse),
by = chdlodds, byse = chdloddsse), nx=rep(17723,3), ny=17723)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.