It would be helpful to restructure the example section as follows:
Introduction of the example (please add a baseline table)
Estimation of avarage treatment effect (atefit) => introduce concept of confounding adjustment (formula PS with logistic regression), prognostic prediction (formula for y; use of Poisson regression; and some explanaition why we are adjusting for prognostic covariates when estimating the ATE), need for bootstrapping when estimating standard error.
Estimation of individual treatment effect (catefit) . Explain what kind of ITE model is being estimated; how do we allow for treatment-covariate interaction?
Internal validation (catecv): Why do we need it? What can we compare? What is the output?
It would be helpful to restructure the example section as follows:
Source: https://github.com/smartdata-analysis-and-statistics/precmed/blob/main/vignettes/Survival-examples.Rmd