Description Usage Arguments Value Author(s) Examples
Excess risk paired survival model
1 |
formula |
formula with 'Surv' outcome (see |
data |
data frame - already set-up. (see |
... |
Additional arguments to lower level funtions |
no output. use summary(model)
to view the coefficient estimates.
Cristina Boschini
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.