data_time_varying_mediator_distal_outcome | R Documentation |
A simulated long-format dataset used in the vignette and tests. Each row corresponds to one subject–decision point. The distal outcome 'Y' is constant within subject (repeated on every row for that subject).
data_time_varying_mediator_distal_outcome
A data frame with n * T_val
rows and the following columns:
Subject identifier (integer).
Decision point index, strictly increasing within subject (integer).
Availability indicator at time dp
(0/1).
Treatment at time dp
(0/1).
Mediator at time dp
(numeric; could be binary or continuous).
Time-varying covariate at time dp
(numeric).
Lagged treatment at time dp-1
(0/1).
Lagged mediator at time dp-1
(numeric).
Lagged covariate at time dp-1
(numeric).
Lagged availability at time dp-1
(0/1).
Randomization probability for A
at time dp
(numeric in (0,1)).
Availability probability for I
at time dp
(numeric in (0,1)).
Conditional mean of M
given history (numeric; from DGM).
Conditional mean of X
given history (numeric; from DGM).
Conditional mean component for distal outcome Y
(numeric; from DGM).
Distal outcome, constant within subject (numeric).
Generated by dgm_time_varying_mediator_distal_outcome()
in the package
source. Intended for illustrating mcee
usage. No missing values.
Simulated.
mcee
, mcee_general
, mcee_userfit_nuisance
data(data_time_varying_mediator_distal_outcome)
str(data_time_varying_mediator_distal_outcome)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.