reg {quickReg} | R Documentation |
Build regression models
Description
Build general linear model, logistic regression model, cox regression model with one or more dependent variables. Allow regression based on subgroup variables.
Usage
reg(data = NULL, x = NULL, y = NULL, group = NULL, cov = NULL,
factors = NULL, model = NULL, time = NULL, cov_show = FALSE,
confint_glm = "default", group_combine = FALSE)
Arguments
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 |
|
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 |
confint_glm |
A character, 'default' or 'profile'. The default method for 'glm' class to compute confidence intervals assumes asymptotic normality |
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) |
Value
The return result is a concentrated result in a data.frame.