predict_traj {trajmsm}R Documentation

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
)

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.

Value

A data.frame with the posterior probabilities.

Author(s)

Awa Diop, Denis Talbot


[Package trajmsm version 0.1.0 Index]