User Functions

initiators()

A wrapper function to perform data preparation and model fitting in a sequence of emulated target trials

data_preparation()

Prepare data for the sequence of emulated target trials

trial_msm()

Fit the marginal structural model for the sequence of emulated trials

case_control_sampling_trials()

Case-control sampling of expanded data for the sequence of emulated trials

predict(<TE_msm>)

Predict marginal cumulative incidences with confidence intervals for a target trial population

print(<TE_weight_summary>)

Print a weight summary object

summary(<TE_data_prep>) summary(<TE_data_prep_sep>) summary(<TE_data_prep_dt>) summary(<TE_msm>) summary(<TE_robust>)

Summary methods

Data Sets

trial_example

Example of longitudinal data for sequential trial emulation

vignette_switch_data

Example of expanded longitudinal data for sequential trial emulation

te_data_ex

Example of a prepared data object

te_model_ex

Example of a fitted marginal structural model object