yoshidk6 / survParamSim

Simulation of Parametric Survival Model with Prediction Intervals
https://yoshidk6.github.io/survParamSim/
3 stars 0 forks source link

Show error when extra variable is included in calc_km_pi for sim from surv_param_sim_resample #19

Closed yoshidk6 closed 3 years ago

yoshidk6 commented 4 years ago

When trt or group are newly assigned in calc_km_pi, #subjects in each group is no longer constant, causing issue with summarizing N. It is also problematic in some occasions, e.g. some re-sampled data does not have a specific group or only have a few subjects. I think it's best NOT to allow user to do so.

yoshidk6 commented 3 years ago

fc5d3015f842a490caf75aec29dfedbabf310f9a

yoshidk6 commented 3 years ago

Decided to just send an warning