Causal Analysis of Observational Time-to-Event Data
Calculate and transform predictions
Calculate Inverse Probability of Censoring Weights
Case-control sampling of expanded data for the sequence of emulated tr...
Censoring Function in C++
Check Data used for Prediction
Data Manipulation Function
Prepare data for the sequence of emulated target trials
Expand trials
Check Expand Flag After Treatment Switch
Expand Function
Fit the marginal structural model for the sequence of emulated trials
Method for fitting outcome models
Method for fitting weight models
A wrapper function to perform data preparation and model fitting in a ...
Internal Methods
IPW Data Accessor and Setter
Method to read, subset and sample expanded data
Outcome Data Accessor and Setter
Fit outcome models using parsnip
models
Predict marginal cumulative incidences with confidence intervals for a...
Print a weight summary object
Method to read expanded data
Robust Variance Calculation
Internal method to sample expanded data
Method to save expanded data
Save expanded data as CSV
Save expanded data as a data.table
Save expanded data to DuckDB
Select Data Columns
Set censoring weight model
Set the trial data
Set expansion options
Specify the outcome model
Set switching weight model
Show Weight Model Summaries
Fit outcome models using stats::glm
Summary methods
TrialEmulation Data Class
te_datastore_csv, functions and methods
te_datastore_duckdb, functions and methods
te_datastore
Outcome Model Fitter Class
TrialEmulation Outcome Data Class
Fitted Outcome Model Object
Fitted Outcome Model Object
Fit Models using parsnip
Fit Models using logistic stats::glm
Fit the marginal structural model for the sequence of emulated trials
Trial Sequence class
Create a sequence of emulated target trials object
TrialEmulation
Package
Data used in weight model fitting
Implements target trial emulation methods to apply randomized clinical trial design and analysis in an observational setting. Using marginal structural models, it can estimate intention-to-treat and per-protocol effects in emulated trials using electronic health records. A description and application of the method can be found in Danaei et al (2013) <doi:10.1177/0962280211403603>.
Useful links