het.weight {MendelianRandomization} | R 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)
[Package MendelianRandomization version 0.10.0 Index]