Learn R Programming

MendelianRandomization (version 0.10.0)

r.weights: 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)

Value

Penalized weights.

Arguments

.Byse

Standard error of genetic association with the outcome.

.pen.weights

Factors for penalizing weights.

Details

None.

Examples

Run this code
r.weights(chdloddsse, penalised.weights(ldlc, ldlcse, chdlodds, chdloddsse))

Run the code above in your browser using DataLab