I'm just getting started with survival analysis and I'm having trouble finding something in R
that will do what I'm looking for.
Most of the packages use survival objects that have an individual record for each patient being looked at (so, patient $1$ at time $0$ was alive, patient $2$ at time $0$ was alive, etc.).
My data however is grouped because of the larger numbers. For example, at time $0$, $1000$ patients were alive and $0$ were dead, at time $1$, $975$ patients were alive and $25$ were dead.
(d1 <- data.frame(TIME=10:5, DEAD=c(0, 0, 1195, 1237, 1251, 1257),
ALIVE=c(1398, 1398, 203, 161, 147, 141)))
TIME DEAD ALIVE
1 10 0 1398
2 9 0 1398
3 8 1195 203
4 7 1237 161
5 6 1251 147
6 5 1257 141
Is there a package
or something in R
or a specific model or something that allows me to perform a survival analysis on data formatted this way? I know this question may not be specifically statistical in nature, but I figured people here would know the most about R
.