powered by
Internal function for calculating heterogeneity-penalized weights.
het.weight(prob.valid.inst, bx, by, byse)
Heterogeneity-penalized weight.
Probability (prior) of a genetic variant being a valid instrument.
Genetic associations with risk factor.
Genetic associations with outcome.
Standard errors of genetic associations with outcome.
None.
het.weight(0.5, calcium, fastgluc, fastglucse)
Run the code above in your browser using DataLab