PXS: PXS

View source: R/PXS.R

PXSR Documentation

PXS

Description

this function builds a polyexposure risk score

Usage

PXS(df, X, cov, mod, IDA, IDB, IDC, seed, removes = NULL, intermediate = F)

Arguments

df

the data frame inpt

X

column name of signficant exposure variables from 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 from XWAS procedure

IDB

list of IDs for testing set

IDC

list of IDs in the final prediction set

seed

setting a seed

removes

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

intermediate

whether or not to save intermediate files

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.