Calculates the probability of the event occurring before t0 + tau,
given survival up to t0, using a single covariate.
Prob.Covariate(t0, tau, data, weight = NULL, short = TRUE, newdata = NULL)A landpred_result object.
The landmark time.
The prediction window.
The data frame for training.
Optional weights.
Logical, whether the covariate is short-term.
Dataframe of new data for prediction.