predict_traj {trajmsm} | R Documentation |
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
)
identifier |
Name of the column of the unique identifier. |
total_followup |
Number of measuring times. |
treatment |
Name of the time-varying treatment. |
time |
Name of the variable time. |
time_values |
Values of the time variable. |
trajmodel |
Trajectory model built with the observed treatment. |
A data.frame with the posterior probabilities.
Awa Diop, Denis Talbot