Internal function for calculating penalized weights in conjunction with r.weights
with weights
equal to "delta"
.
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"
.
penalised.weights.delta(.Bx, .Bxse, .By, .Byse, .psi)
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.
The correlation between the genetic associations with the exposure and the association with the outcome for each variant resulting from sample overlap.
None.
penalised.weights.delta(ldlc, ldlcse, chdlodds, chdloddsse, 0)
Run the code above in your browser using DataLab