All functions

apply_logics()

Apply case_when logics (e.g. policy, censoring) to clones

clone_arms()

Duplicate data frame for each treatment arm to emulate

create_censoring_logics_A()

Generate censoring logic for scenario A

create_final_data()

Create training data for censoring probability estimation

create_policy_A()

Generate clone policy for scenario A

emul_estimate()

Estimate the emulated trial effect

emul_estimate_bootstrap()

Bootstrap a complete clone-censor-weight analysis

estimate_censoring()

Estimate censoring probabilities

lungcancer

Simulated lung cancer patients data by Maringe et al. (2020)

make_surv_response()

Construct a survival response

patients13

13 types of patient records in Maringe et al. (2020)

read_trial_data()

Read trial-style data from CSV

weight_cases()

Add inverse probability of censoring weights