het.weight: Heterogeneity-penalized weight function

View source: R/mr_hetpen-methods.R

het.weightR Documentation

Heterogeneity-penalized weight function

Description

Internal function for calculating heterogeneity-penalized weights.

Usage

het.weight(prob.valid.inst, bx, by, byse)

Arguments

prob.valid.inst

Probability (prior) of a genetic variant being a valid instrument.

bx

Genetic associations with risk factor.

by

Genetic associations with outcome.

byse

Standard errors of genetic associations with outcome.

Details

None.

Value

Heterogeneity-penalized weight.

Examples

het.weight(0.5, calcium, fastgluc, fastglucse)


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