divide.conquer.timereg: Split a data set and run function from timereg and aggregate

Description Usage Arguments Author(s) Examples

Description

Split a data set and run function of cox-aalen type and aggregate results

Usage

1

Arguments

func

called function

data

data-frame

size

size of splits

...

Additional arguments to lower level functions

Author(s)

Thomas Scheike, Klaus K. Holst

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(timereg)
data(TRACE)

a <- divide.conquer.timereg(prop.odds,TRACE,
	     formula=Surv(time,status==9)~chf+vf+age,n.sim=0,size=200)
coef(a)
a2 <- divide.conquer.timereg(prop.odds,TRACE,
	     formula=Surv(time,status==9)~chf+vf+age,n.sim=0,size=500)
coef(a2)
par(mfrow=c(1,1))
plot(a,xlim=c(0,8),ylim=c(0,0.01))
par(new=TRUE)
plot(a2,xlim=c(0,8),ylim=c(0,0.01))


Search within the mets package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.