[R] Splitting survivor episodes
Daniel A. Powers
dpowers at mail.la.utexas.edu
Fri Feb 28 22:19:02 CET 2003
To R-list --
Does anyone know of an R function that will create split-episode data from
single spell event/duration data according to user-defined time intervals?
Example: original data
t d x
------------
6 0 x1
5 1 x2
Split using intervals [0,3) [3,infty) (or cutpoint at 3)
start end event
_t0 _t _d _x episode
0 3 0 x1 1
3 6 0 x1 2
0 3 0 x2 1
3 5 1 x2 2
Thanks,
Dan
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Daniel A. Powers, Ph.D.
Associate Professor of Sociology
University of Texas at Austin
370 Burdine
Austin, TX 78712
phone: 512-232-6335
fax: 512-471-1748
dpowers at mail.la.utexas.edu
More information about the R-help
mailing list