View source: R/mr_hetpen-methods.R
het.weight | R Documentation |
Internal function for calculating heterogeneity-penalized weights.
het.weight(prob.valid.inst, bx, by, byse)
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. |
None.
Heterogeneity-penalized weight.
het.weight(0.5, calcium, fastgluc, fastglucse)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.