Calculates p-values for penalization of weights
Internal function for calculating penalized weights in conjunction with penalised.weights
.
These weights are used in either the mr_ivw
or mr_egger
functions when penalized = TRUE
.
r.weights(.Byse, .pen.weights)
.Byse
: Standard error of genetic association with the outcome..pen.weights
: Factors for penalizing weights.Penalized weights.
None.
r.weights(chdloddsse, penalised.weights(ldlc, ldlcse, chdlodds, chdloddsse))
Useful links