mr_mode: MR mode estimators

View source: R/mr_mode.R

mr_modeR Documentation

MR mode estimators

Description

Perform simple, weighted, penalised modes, as well as versions that use the NOME assumption.

Usage

mr_mode(dat, parameters = default_parameters(), mode_method = "all")

Arguments

dat

Output from harmonise_data().

parameters

List of parameters. The default is default_parameters().

mode_method

The default is "all". The other choices are 'Simple mode', 'Weighted mode', 'Penalised mode', 'Simple mode (NOME)', 'Weighted mode (NOME)'.

Value

data frame


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