# Forecasting Survival Analysis

I use the Kaplan-Meier estimator to represent survival functions between two groups. Suppose I have X events at a given time t. How can I predict time t+k to obtain X+i events? As with time series, is there a way to make predictions on survival data?

To give you some details: First: suppose I have 50 events on 12/07/2024 for 500 observations. My goal is to reach 65 events. Is there any way of predicting when these 65 events will be reached (with an IC95%)? Second: assuming I have a Weibull distribution, can I run simulations to predict different forms of the survival function?

Thank you

• Please edit the question to provide more details about the specific situation you are trying to work with and the types of predictions you want to make. You can't extrapolate Kaplan-Meier curves beyond the last event time, but predictions within the range of event times is certainly possible both for Kaplan-Meier and Cox models. With parametric models you can even try to predict beyond the range of event times, provided that you are willing to assume that the parametric form is correct. As it stands, this question is a bit too vague to get a helpful answer.
– EdM
Commented Jul 11 at 17:57

A Kaplan-Meier curve displays the survival data available to date, but you need to make assumptions to extrapolate. If you are willing to assume a particular parametric distribution, like the Weibull you suggest, you can fit that distribution to the data to date, obtain estimates for the parameters of the distribution, and then extrapolate. The R survival package contains a survreg() function for fitting parametric models to survival data, and associated functions for making predictions.
It would be wise to play with the parameters of the Weibull distribution to see how much that time estimate to reach 65 events would vary, based on the uncertainty in the parameter values. You can use tools in the survival package for simple work, or do more complicated simulations with packages like simsurv.*