Learn R Programming

MendelianRandomization (version 0.10.0)

het.weight: Heterogeneity-penalized weight function

Description

Internal function for calculating heterogeneity-penalized weights.

Usage

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

Value

Heterogeneity-penalized weight.

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.

Examples

Run this code
het.weight(0.5, calcium, fastgluc, fastglucse)

Run the code above in your browser using DataLab