Learn R Programming

trajmsm (version 0.1.3)

predict_traj: Predict trajectory groups for deterministic treatment regimes

Description

Function to predict trajectory groups for deterministic treatment regimes used with gformula and pooled LTMLE.

Usage

predict_traj(
  identifier,
  total_followup,
  treatment,
  time,
  time_values,
  trajmodel
)

Value

A data.frame with the posterior probabilities.

Arguments

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.

Author

Awa Diop, Denis Talbot