reg_y {quickReg}R Documentation

Build regression models with more than one dependent variable

Description

Build general linear model, generalized linear model, cox regression model,etc.

Usage

reg_y(data = NULL, x = NULL, y = NULL, cov = NULL, factors = NULL,
  model = NULL, time = NULL, confint_glm = "default", cov_show = FALSE)

Arguments

data

A data.frame

x

Integer column indices or names of the variables to be included in univariate analysis, the default columns are all the variables except 'y' and 'time' and 'cov'.

y

Integer column indices or name of dependent variable

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 lm, glm, coxph for more details

time

Integer column indices or name of survival time, used in cox regression, see coxph for more details

confint_glm

A character, 'default' or 'profile'. The default method for 'glm' class to compute confidence intervals assumes asymptotic normality confint, you can also use profile likelihood method confint.glm, but it is pretty slow. In this case you could specify 'default' for speed.

cov_show

A logical, whether to create covariates result, default FALSE

Value

The return result is a concentrated result in a data.frame.


[Package quickReg version 1.5.0 Index]