reg_y: Build regression models with more than one dependent variable

Description Usage Arguments Value

Description

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

Usage

1
2
reg_y(data = NULL, x = NULL, y = NULL, cov = NULL, factors = NULL,
  model = NULL, time = NULL, 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

cov_show

A logical, whether to create covariates result, default FALSE

Value

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


GeneticResources/quickReg documentation built on May 15, 2019, 5:34 p.m.