Function to predict trajectory groups for deterministic treatment regimes used with gformula and pooled LTMLE.
predict_traj(
identifier,
total_followup,
treatment,
time,
time_values,
trajmodel
)
A data.frame with the posterior probabilities.
Name of the column of the unique identifier.
Number of measuring times.
Name of the time-varying treatment.
Name of the variable time.
Values of the time variable.
Trajectory model built with the observed treatment.
Awa Diop, Denis Talbot