xwas: xwas

View source: R/xwas.R

xwasR Documentation

xwas

Description

this is a function to run an exposure wide association study (XWAS) with any phenotype and a set of exposure variables

Usage

xwas(df, X, cov, mod, IDA, removes = NULL, fdr = TRUE)

Arguments

df

the data frame inpt

X

column name of exposure variables to run XWAS

cov

column name of covariates

mod

type of model to run; 'lm' for linear regression, 'logistic' for logistic regression; 'cox' for Cox regression

IDA

list of IDs to include in XWAS

removes

any exposure response to remove from XWAS, in the form of a list

fdr

whether or not to adjust for multiple hypothesis correctin

Author(s)

Yixuan He, yixuan_he@hms.harvard.edu


yixuanh/PXStools documentation built on July 27, 2022, 10:27 a.m.