exccumhaz: Cumulative baseline excess hazard estimate

Description Usage Arguments Value Author(s) Examples

View source: R/matchf.R

Description

Cumulative baseline excess hazard estimate

Usage

1
2
exccumhaz(object, strata = object$strata, time = NULL,
  SEcumhaz = TRUE)

Arguments

object

model estimated with matchpropexc

strata

default strata if the model has them.

time

specify at which time to compute the estimates

SEcumhaz

by default set to TRUE. FALSE if you don't want to compute it.

Value

cumulative baseline excess hazard estimates. If the model has strata, the returned object will be a list. Estimated are computed at the defined time.

Author(s)

Cristina Boschini

Examples

1
2
3
4
5
6
dhaz<-sim.data.MatchH(nca=5000, ncont=5)
setdhaz<-compdata(Surv(time, status)~z+cc, clust=id, idControl=j, data=dhaz)
exc.model<-matchpropexc(Surv(entry,exit,status)~strata(z)+cc, data=setdhaz)
cumhaz <- exccumhaz(exc.model) #it's a list because of strata
cumhaz <- exccumhaz(exc.model, time=seq(0,30,5)) 
#you can chose at which time-points to show the estimates

cribosch/matchsurv documentation built on Aug. 15, 2019, 11:55 a.m.