Fits a GLM for the probability of the event occurring before t0 + tau,
given survival up to t0 and information on a short-term event.
Uses kernel weighting based on the short-term event time.
fit_short_glm(landpred_obj, t0, tau, t_s, bw, transform, indices = NULL)A fitted glm object.
A landpred object containing the data.
The landmark time.
The prediction window.
The time of the short-term event.
The bandwidth for kernel weighting.
A transformation function for the time variable (e.g., log).
Optional indices to subset the data.