hr.thregIcure: perform hazard ratio for threshold regression cure-rate model

Description Usage Arguments Examples

Description

Returns the hazard ratios at a selected time for specified scenarios of the threshold regression cure-rate model.

Usage

1
2
## S3 method for class 'thregIcure'
hr(object,var,timevalue,scenario)

Arguments

object

a thregIcure object.

var

specifies the name of the variable which is required to be categorical for which the hazard ratios are to be calculated. The use of the var argument is similar to that in the hr.thregI().

timevalue

specifies the desired time at which the hazard ratios would like to be had. A vector is allowed for this argument.

scenario

specifies the values of all variables that considered in the thregIcure function except variable of var.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#load the data "hdsd"
data("hdsd", package="thregI")

#transform categorical variable Noadyn into factor variable f.noadyn
hdsd$f.noadyn=factor(hdsd$Noadyn)

#fit the threshold regression cure-rate model
#the covariates are TR360, Noadyn, Sex and Age
fit<-thregIcure(Surv(left, right, type='interval2')~f.noadyn|TR360|Sex+Age, data=hdsd)

#calculate the hazard ratios for categorical variable Noadyn
#specified scenario of TR360=1.5, Male, Age=30 at time one
hr.thregIcure(fit, var = f.noadyn, timevalue = 1, scenario=TR360(1.5)+Sex(1)+Age(30))

thregI documentation built on May 2, 2019, 6:27 a.m.

Related to hr.thregIcure in thregI...