reg | R Documentation |
Build general linear model, generalized linear model, cox regression model with one or more dependent variables. Allow regression based on subgroup variables.
reg( data = NULL, x = NULL, y = NULL, group = NULL, cov = NULL, factors = NULL, model = NULL, time = NULL, cov_show = FALSE, group_combine = FALSE )
data |
A data.frame to build the regression model. |
x |
Integer column indices or names of the variables to be included in univariate analysis. If |
y |
Integer column indice or name of dependent variables, integer or character, allow more than one dependent variables |
group |
Integer column indice or name of subgroup variables. |
cov |
Integer column indices or name of covariate variables |
factors |
Integer column indices or names of variables to be treated as factor |
model |
regression model, see |
time |
Integer column indices or name of survival time, used in cox regression, see |
cov_show |
A logical, whether to create covariates result, default FALSE |
group_combine |
A logical, subgroup analysis for combination of group variables or each group variables. The default is FALSE (subgroup analysis for each group variable) |
The return result is a concentrated result in a data.frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.