Test for a trend in the effect of shift interventions via working MSM

trend_msm(
  tmle_fit_estimates,
  delta_grid,
  level = 0.95,
  weighting = c("identity", "variance")
)

Arguments

tmle_fit_estimates

A list corresponding to the $estimates slot of an object of class tmle3_Fit, containing estimates of a grid of posited shift interventions.

delta_grid

A numeric vector giving the individual values of the shift parameter used in computing each of the TML estimates.

level

The nominal coverage probability of the confidence interval.

weighting

A character indicating the type of weighting used for construction of the marginal structural model. "identity" applies the same weight to all individual estimates while "variance" applies weights based on the inverse variance of the estimate. It would be expected that variance-based weighting would yield more stable estimates of the parameter of the MSM. The default is identity-based weighting.