survreg2multi: Make multivariable regression model by selecting univariable...

View source: R/fit2multi.R

survreg2multiR Documentation

Make multivariable regression model by selecting univariable models with p.value below threshold

Description

Make multivariable regression model by selecting univariable models with p.value below threshold

Usage

survreg2multi(fit, threshold = 0.2)

Arguments

fit

An object of class "survreg"

threshold

Numeric

Value

An object of class "survreg"

Examples

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

autoReg documentation built on Nov. 14, 2023, 9:07 a.m.