matchpropexc: Excess risk paired survival model

Description Usage Arguments Value Author(s) Examples

View source: R/matchf.R

Description

Excess risk paired survival model

Usage

1

Arguments

formula

formula with 'Surv' outcome (see coxph); use strata() for strata-variables

data

data frame - already set-up. (seecompdata for modre details)

...

Additional arguments to lower level funtions

Value

no output. use summary(model) to view the coefficient estimates.

Author(s)

Cristina Boschini

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
dhaz<-sim.data.MatchH(nca=5000, ncont=5)
setdhaz<-compdata(Surv(time, status)~z+cc, clust=id, idControl=j, data=dhaz)
names(setdhaz) # it is strongly recommended to check the 
               #names of your variables before estimating the model
exc.model<-matchpropexc(Surv(entry,exit,status)~strata(z)+cc,
                        data=setdhaz)
summary(exc.model)
### with competing risks
dhazc<-sim.data.MatchH(nca=5000,ncont=5,competing=TRUE)
setdhaz1<-compdata(Surv(time, status==1)~z+cc, clust=id, idControl=j, data=dhazc)
exc.model1<-matchpropexc(Surv(entry,exit,status)~strata(z)+cc, data=setdhaz1)
summary(exc.model1)
setdhaz2<-compdata(Surv(time, status==2)~z+cc, clust=id, idControl=j, data=dhazc)
exc.model2<-matchpropexc(Surv(entry,exit,status)~1, data=setdhaz2)
summary(exc.model2)

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