PXS | R Documentation |
this function builds a polyexposure risk score
PXS(df, X, cov, mod, IDA, IDB, IDC, seed, removes = NULL, intermediate = F)
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 |
Yixuan He, yixuan_he@hms.harvard.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.