A generic function for cleaning data ready for analysis
Arguments
- CFM
a model object supplied to pscfit
- DC
a dataset including covariates to match the CFM
- id
to specify which observations in the data cohort should be evaluated. Defualts to 'NULL' i.e all observations
- trt
used to specify multiple treatment effects. Defaults to NULL
- cfmOb
used to specify if a CFM object is supplies as the counter factual model