mbe_boot: Mode-based estimate (Hartwig) bootstrap function

View source: R/mr_mbe-methods.R

mbe_bootR Documentation

Mode-based estimate (Hartwig) bootstrap function

Description

Internal function for calculating standard error of mode-based estimate.

Usage

mbe_boot(BetaIV.in, seBetaIV.in, weighting.in, iterations.in, phi.in)

Arguments

BetaIV.in

Ratio causal estimates for each genetic variant considered individually.

seBetaIV.in

Standard errors of ratio causal estimates.

iterations.in

Number of bootstrap iterations.

phi.in

Bandwidth multiplication factor.

Details

None.

Value

Bootstrapped mode-based estimates.

Examples

mbe_boot(BetaIV.in = chdlodds/ldlc, seBetaIV.in = abs(chdloddsse/ldlc),
   weighting.in = "simple", iterations.in = 100)


MendelianRandomization documentation built on May 29, 2024, 11:36 a.m.