r.weights {MendelianRandomization}R 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))


[Package MendelianRandomization version 0.7.0 Index]