mr_simple_mode: MR simple mode estimator

View source: R/mr_mode.R

mr_simple_modeR Documentation

MR simple mode estimator

Description

MR simple mode estimator

Usage

mr_simple_mode(b_exp, b_out, se_exp, se_out, parameters = default_parameters())

Arguments

b_exp

Vector of genetic effects on exposure

b_out

Vector of genetic effects on outcome

se_exp

Standard errors of genetic effects on exposure

se_out

Standard errors of genetic effects on outcome

parameters

List containing phi - Bandwidth parameter, and nboot - number of bootstraps to calculate SE. default_parameters() sets list(phi=1, nboot=1000).

Value

List with the following elements:

b

MR estimate

se

Standard error

pval

p-value


MRCIEU/TwoSampleMR documentation built on Sept. 28, 2024, 6:51 p.m.