Data Manipulation Function
This function takes the data and all the variables and does the extension preprocessing
data_manipulation(data, use_censor = TRUE)
data
: data.table
to pre-process for weight calculation and extension.use_censor
: apply censoring due to treatment switch?Useful links