uniReg | R Documentation |
Univariate logistic or linear regression for a dataset.
uniReg(
outcome,
dataset,
regression.type = "lm",
padj.method = "fdr",
covars = "none"
)
outcome |
string with name of class column or outcome vector. |
dataset |
data matrix with predictor columns and outcome column. |
regression.type |
"lm" or "binomial" |
padj.method |
for p.adjust ( |
covars |
optional vector or matrix of covariate columns for correction. Or separate data matrix of covariates. |
matrix of beta, p-value and adjusted p-value, sorted by p-value.
out_univariate <- uniReg(
outcome = "class",
dataset = case.control.3sets$train,
regression.type = "binomial"
)
head(out_univariate)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.