r.weights function

Calculates p-values for penalization of weights

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)

Arguments

  • .Byse: Standard error of genetic association with the outcome.
  • .pen.weights: Factors for penalizing weights.

Returns

Penalized weights.

Details

None.

Examples

r.weights(chdloddsse, penalised.weights(ldlc, ldlcse, chdlodds, chdloddsse))
  • Maintainer: Stephen Burgess
  • License: GPL-2 | GPL-3
  • Last published: 2024-04-12

Useful links