powered by
Internal function for calculating penalized weights in conjunction with r.weights.
r.weights
These weights are used in either the mr_ivw or mr_egger functions when penalized = TRUE, or in the mr_median function when method = "penalized".
mr_ivw
mr_egger
penalized = TRUE
mr_median
method = "penalized"
penalised.weights(.Bx, .Bxse, .By, .Byse)
P-values corresponding to heterogeneity test for each genetic variant in turn (based on a chi-squared-1 distribution).
Beta-coefficient for genetic association with the risk factor.
Standard error of genetic association with the risk factor.
Beta-coefficient for genetic association with the outcome.
Standard error of genetic association with the outcome.
None.
penalised.weights(ldlc, ldlcse, chdlodds, chdloddsse)
Run the code above in your browser using DataLab