Weighted mode estimator
Usage
mr_weighted_mode_nome(
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, andnboot
- number of bootstraps to calculate SE.default_parameters()
setslist(phi=1, nboot=1000)
.