sobelTest: Compute total mediation effect

View source: R/sobelTest.R

sobelTestR Documentation

Compute total mediation effect

Description

The function takes in a SNP-mediator set-gene triplet and computes the total mediation effect and tests the total mediator effect via a Sobel test (1982)

Usage

sobelTest(snp, expression, mediators, covs)

Arguments

snp

vector, SNP of interest

expression

vector, gene expression of interest

mediators

data frame, mediators of interest

covs

data frame, covariates

Value

estimate of TME and Sobel test P-value


bhattacharya-a-bt/MOSTWAS documentation built on April 6, 2023, 12:20 a.m.