weighted.median: Weighted median function

View source: R/mr_median-methods.R

weighted.medianR Documentation

Weighted median function

Description

Internal function for calculating weighted median estimate (or simple median estimate if weights are all equal).

Usage

weighted.median(theta, weights)

Arguments

theta

Ratio causal estimates for each genetic variant considered individually.

weights

Weights.

Details

None.

Value

Causal estimate.

Examples

weighted.median(theta = chdlodds/ldlc, weights = abs(chdloddsse/ldlc))


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