condFstat: Calculates conditional F-statistic for each risk factor using...

View source: R/mr_mvivw-methods.R

condFstatR Documentation

Calculates conditional F-statistic for each risk factor using summarized data

Description

Internal function for calculating conditional F-statistics for the output condFstat.

Usage

condFstat(.Bx, .Bxse, .nx, .ld, .cor.x)

Arguments

.Bx

Beta-coefficient for genetic associations with the risk factors.

.Bxse

Standard error of genetic associations with the risk factors.

.nx

sample sizes used to compute genetic associations with the risk factors.

.ld

genetic variant correlation matrix

.cor.x

Risk factor correlation matrix

Details

None.

Value

Conditional F-statistic for each exposure

Examples

condFstat(.Bx = cbind(ldlc, hdlc, trig), .Bxse = cbind(ldlcse, hdlcse, trigse),
 .nx = rep(17723,3), .ld=diag(length(ldlc)), .cor.x=diag(3))


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