qhet_mvmr | R Documentation |
Fits a multivariable Mendelian randomization model adjusting for weak instruments. The functions requires a formatted dataframe using the format_mvmr
function, as well a phenotypic correlation matrix pcor
. This should be obtained from individual level
phenotypic data, or constructed as a correlation matrix where correlations have previously been reported. Confidence intervals are calculated using a non-parametric bootstrap.
By default, standard errors are not produced but can be calculated by setting se = TRUE
. The number of bootstrap iterations is specified using the iterations
argument.
Note that calculating confidence intervals at present can take a substantial amount of time.
qhet_mvmr(r_input, pcor, CI, iterations)
r_input |
A formatted data frame using the |
pcor |
A phenotypic correlation matrix including the correlation between each exposure included in the MVMR analysis. |
CI |
Indicates whether 95 percent confidence intervals should be calculated using a non-parametric bootstrap. |
iterations |
Specifies number of bootstrap iterations for calculating 95 percent confidence intervals. |
An dataframe containing effect estimates with respect to each exposure.
Wes Spiller; Eleanor Sanderson; Jack Bowden.
Sanderson, E., et al., An examination of multivariable Mendelian randomization in the single-sample and two-sample summary data settings. International Journal of Epidemiology, 2019, 48, 3, 713-727. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1093/ije/dyy262")}
## Not run:
qhet_mvmr(r_input, pcor, CI = TRUE, iterations = 1000)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.