Parametric survival models and when to prefer them
Today let's understand three models that can do something a Cox model cannot: put an actual number on how many subscribers will still be around months after your own data runs out.
Pulse, a subscription company, sells an annual plan. It has 200 subscribers on that plan, and it has followed every one of them for 15 months, one full renewal cycle. For each subscriber, Pulse knows exactly one of two things: the month they cancelled, or that they were still subscribed when the 15 months ended.
Here are 10 of those 200 subscribers, taken straight from the data.
Subscriber 1 cancelled at month 6.5. Subscriber 2 was still subscribed when the 15 months closed, so their row just says 15.0, the month the window ended, not a cancellation month. That difference, knowing exactly when someone cancelled against only knowing they had not cancelled yet, matters throughout this lesson.
Pulse wants one number nobody in this table can give directly: what fraction of all 200 subscribers will still be subscribed at month 24, nine months past the end of its own follow-up. Getting that number takes a model that commits to a full shape for cancellation risk, not just these raw cancellation months on their own.
What the Cox model's unspecified baseline cannot give you
A Cox model is the tool you would reach for first to compare two groups of subscribers, say annual against monthly. But Pulse has not asked that yet. Before comparing any groups, it is worth seeing what a Cox model can and cannot say about this cohort on its own, with no groups at all.
Here is a widget showing the Cox model's own trick: it writes every hazard as a baseline hazard times a ratio, and leaves the baseline's own shape completely unspecified.
This widget uses its own small, canned example, not Pulse's data: a baseline hazard for one group, and a toggle for a hazard ratio applied to a second group. Push the toggle and the second curve moves up or down, always by the same ratio, at every single month. That ratio is all a Cox model estimates. The shape of the baseline curve itself, rising, falling or flat, is never pinned down.
For Pulse's 200 subscribers, with no groups to compare, fitting a Cox model and asking for its survival estimate shows exactly what that unspecified baseline costs.
status is 1 when a subscriber cancelled and 0 when they were still subscribed at month 15, so time and status together are what Surv() needs. Out of the 200 subscribers, 104 cancelled during the 15 months, 52% of the cohort, and the other 96 were still on the plan when it closed.
Look at what summary(survfit(...)) returned. It has rows for month 10 and for month 15, but nothing at all for month 20 or month 24, even though both were asked for. That is not a bug. The last subscriber in this cohort actually cancelled at month 14.98, just under the 15-month mark, and survfit() cannot report a survival estimate past the last month it actually observed a cancellation. Ask it for month 20 or month 24 and there is simply no row to give back, because the Cox model's baseline hazard was never given a shape to extend past that point.
That is the gap this lesson closes. A model that commits to a full shape for the hazard, not just a ratio between two groups, can keep going past month 15 and put a real number on month 24.