Man pages for CAM-Roche/RandomisedTrialsEmulation
Causal Analysis of Observational Time-to-Event Data

calculate_predictionsCalculate and transform predictions
calculate_weightsCalculate Inverse Probability of Censoring Weights
case_control_sampling_trialsCase-control sampling of expanded data for the sequence of...
censor_funcCensoring Function in C++
check_newdataCheck Data used for Prediction
data_censoredExample of longitudinal data for sequential trial emulation...
data_manipulationData Manipulation Function
data_preparationPrepare data for the sequence of emulated target trials
expandExpand Function
expand_trialsExpand trials
expand_until_switchCheck Expand Flag After Treatment Switch
fit_msmFit the marginal structural model for the sequence of...
fit_outcome_modelMethod for fitting outcome models
fit_weights_modelMethod for fitting weight models
initiatorsA wrapper function to perform data preparation and model...
internal-methodsInternal Methods
ipw_dataIPW Data Accessor and Setter
load_expanded_dataMethod to read, subset and sample expanded data
outcome_dataOutcome Data Accessor and Setter
parsnip_modelFit outcome models using 'parsnip' models
predict_marginalPredict marginal cumulative incidences with confidence...
print_TEPrint a weight summary object
read_expanded_dataMethod to read expanded data
robust_calculationRobust Variance Calculation
sample_expanded_dataInternal method to sample expanded data
save_expanded_dataMethod to save expanded data
save_to_csvSave expanded data as CSV
save_to_datatableSave expanded data as a 'data.table'
save_to_duckdbSave expanded data to 'DuckDB'
select_data_colsSelect Data Columns
set_censor_weight_modelSet censoring weight model
set_dataSet the trial data
set_expansion_optionsSet expansion options
set_outcome_modelSpecify the outcome model
set_switch_weight_modelSet switching weight model
show_weight_modelsShow Weight Model Summaries
stats_glm_logitFit outcome models using 'stats::glm'
summary_TESummary methods
te_data-classTrialEmulation Data Class
te_data_exExample of a prepared data object
te_datastore-classte_datastore
te_datastore_csv-classte_datastore_csv, functions and methods
te_datastore_duckdb-classte_datastore_duckdb, functions and methods
te_model_exExample of a fitted marginal structural model object
te_model_fitter-classOutcome Model Fitter Class
te_outcome_data-classTrialEmulation Outcome Data Class
te_outcome_fitted-classFitted Outcome Model Object
te_outcome_model-classFitted Outcome Model Object
te_parsnip_model-classFit Models using parsnip
te_stats_glm_logit-classFit Models using logistic stats::glm
TrialEmulation-package'TrialEmulation' Package
trial_exampleExample of longitudinal data for sequential trial emulation
trial_msmFit the marginal structural model for the sequence of...
trial_sequenceCreate a sequence of emulated target trials object
trial_sequence-classTrial Sequence class
vignette_switch_dataExample of expanded longitudinal data for sequential trial...
weight_model_data_indicesData used in weight model fitting
CAM-Roche/RandomisedTrialsEmulation documentation built on April 14, 2025, 7:44 a.m.