View source: R/mr_ivw-methods.R
r.weights.delta | R Documentation |
Internal function for calculating penalized weights in conjunction with penalised.weights
with weights
equal to "delta"
.
These weights are used in either the mr_ivw
or mr_egger
functions when penalized = TRUE
.
r.weights.delta(.Bx, .Bxse, .By, .Byse, .psi, .pen.weights)
.Bx |
Beta-coefficient for genetic association with the risk factor. |
.Bxse |
Standard error of genetic association with the risk factor. |
.By |
Beta-coefficient for genetic association with the outcome. |
.Byse |
Standard error of genetic association with the outcome. |
.psi |
The correlation between the genetic associations with the exposure and the association with the outcome for each variant resulting from sample overlap. |
.pen.weights |
Factors for penalizing weights. |
None.
Penalized weights.
r.weights.delta(ldlc, ldlcse, chdlodds, chdloddsse, 0,
penalised.weights.delta(ldlc, ldlcse, chdlodds, chdloddsse, 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.