Learn R Programming

autoReg (version 0.3.3)

mysurvregSimple: Fit Simple AFT Model

Description

Fit Simple AFT Model

Usage

mysurvregSimple(fit, threshold = 0.2, digits = 2, mode = 1)

Value

An object of class "data.frame"

Arguments

fit

An object of class survreg

threshold

numeric p-value threshold to enter multiple model

digits

integer indicating the position decimal place

mode

integer

Examples

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

Run the code above in your browser using DataLab