Learn R Programming

autoReg (version 0.3.3)

survreg2final: Make final model using stepwise backward elimination

Description

Make final model using stepwise backward elimination

Usage

survreg2final(fit, threshold = 0.2)

Value

An object of class "survreg" which is described in survreg

Arguments

fit

An object of class "survreg"

threshold

Numeric

Examples

Run this code
require(survival)
data(cancer)
fit=survreg(Surv(time,status)~rx+age+sex+obstruct+perfor,data=colon)
survreg2final(fit)

Run the code above in your browser using DataLab