MRMix_se: Standard error of the MRMix estimator

Description Usage Arguments Value References

View source: R/MRMix_se.R

Description

This function calculates the standard error of the MRMix estimator using asymptotic theory.

Usage

1
MRMix_se(betahat_x, betahat_y, sx, sy, theta, pi0, sigma2)

Arguments

betahat_x

GWAS effect estimates of the exposure, recommended to be in standardized scale. Vector of length K, where K is the number of instruments.

betahat_y

GWAS effect estimates of the outcome, recommended to be in standardized scale. Vector of length K.

sx

Standard error of betahat_x, recommended to be in standardized scale. Vector of length K.

sy

Standard error of betahat_y, recommended to be in standardized scale. Vector of length K.

theta

Estimate of causal effect.

pi0

The probability mass of the null component corresponding to the estimated theta.

sigma2

The variance of the non-null component corresponding to the estimated theta.

Value

The standard error of MRMix estimator.

References

Qi, Guanghao, and Nilanjan Chatterjee. "Mendelian randomization analysis using mixture models for robust and efficient estimation of causal effects." Nature Communications 10.1 (2019): 1941.


gqi/MRMix documentation built on Jan. 30, 2020, 1:35 a.m.