The causal truth is a property of the data-generating machine, not of any one
(confounded) data set. To read it off we turn confounding off – randomise
treatment (rand = TRUE) – and run the trial at a large n so sampling noise
vanishes. Fitting the joint Cox model on that randomised cohort gives the
always-treat-vs-never-treat hazard ratio, exp(b_drug1 + b_drug2).
Arguments
- n
Oracle sample size. Large by default so the truth is a precise number.
- seed
Random seed.
- ...
Further arguments passed to
simulate_hr_agent()(e.g.b_drug).