PXSgl: PXSgl

View source: R/PXSgl.R

PXSglR Documentation

PXSgl

Description

this function builds a polyexposure risk score considering interactions between exposures using the group lasso method

Usage

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

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

folds

number of folds for the cross validation step, default is 10.

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.