model.prior: Prior weight function

View source: R/mr_hetpen-methods.R

model.priorR Documentation

Prior weight function

Description

Internal function for prior weights.

Usage

model.prior(model.size, N.obs, prob.valid.inst)

Arguments

model.size

Size of subset.

N.obs

Number of genetic variants.

prob.valid.inst

Probability (prior) of a genetic variant being a valid instrument.

Details

None.

Value

Prior weight.

Examples

model.prior(8, 15, 0.5)


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