r.weights: Calculates p-values for penalization of weights

View source: R/mr_ivw-methods.R

r.weightsR Documentation

Calculates p-values for penalization of weights

Description

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.

Usage

r.weights(.Byse, .pen.weights)

Arguments

.Byse

Standard error of genetic association with the outcome.

.pen.weights

Factors for penalizing weights.

Details

None.

Value

Penalized weights.

Examples

r.weights(chdloddsse, penalised.weights(ldlc, ldlcse, chdlodds, chdloddsse))


MendelianRandomization documentation built on May 29, 2024, 11:36 a.m.