autoReg | R Documentation |
Perform univariable and multivariable regression and stepwise backward regression automatically
autoReg(x, ...)
## S3 method for class 'lm'
autoReg(x, ...)
## S3 method for class 'glm'
autoReg(x, ...)
## S3 method for class 'coxph'
autoReg(x, ...)
## S3 method for class 'survreg'
autoReg(x, ...)
x |
An object of class lm, glm or coxph |
... |
Further arguments |
autoReg returns an object of class "autoReg" which inherits from the class "data.frame" with at least the following attributes:
character. name of dependent variable
name of model. One of "lm","glm" or "coxph"
autoReg(lm)
: S3 method for a class lm
autoReg(glm)
: S3 method for a class glm
autoReg(coxph)
: S3 method for a class coxph
autoReg(survreg)
: S3 method for a class survreg
data(cancer,package="survival")
fit=glm(status~rx+sex+age+obstruct+nodes,data=colon,family="binomial")
autoReg(fit)
autoReg(fit,uni=FALSE,final=TRUE)
autoReg(fit,uni=FALSE,imputed=TRUE)
fit=lm(mpg~wt*hp+am+I(wt^2),data=mtcars)
autoReg(fit,final=TRUE)
autoReg(fit,imputed=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.