You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current version of gsDesign2, there are couple of classes.
fixed_design: this class is created for enabling S3 method for summarizing/integer fixed design table. It is suggested to keep this class, since the summarizing/integering fixed designs can be different from summarizing group sequential design.
gs_design: similar to the class above.
ahr: this class is created for enabling S3 method for integer AHR design, considering the to_integer method of AHR design is different from risk difference. I am wondering if we should divide in more details of the class, such as gs_design_ahr, gs_design_rd, etc. (code source: https://github.com/Merck/gsDesign2/blob/main/R/summary.R#L286C12-L286C23)
In the current version of simtrial, we have the class of
counting_process and tte_data: these 2 classes help with objects passing to the tests, which can be either a counting process, or a TTE dataset.
simtrial_gs_wlr: this class is created to summarize simulations with >=2 analyses. Maybe it is good we could keep this class short as sim_gs_wlr.
simtrial_fixed_wlr: this class is not currently available in simtrial, but would be useful in the future to summary simulations with 1 analysis only. Maybe it is good we could keep this class short as sim_fixed_wlr.
sim_gs_rmst: TBD
sim_fixed_rmst: TBD
sim_gs_milestone: TBD
sim_fixed_milestone: TBD
Two questions:
Will additional classes be included in gsDesign2 or simtrial?
Some keywords, such as 'gs', 'fixed', and 'wlr', are common to both gsDesign2 and simtrial. What is the recommended naming convention to distinguish classes from gsDesign2 or simtrial?
The text was updated successfully, but these errors were encountered:
I agree this is an important discussion to have. The class system in {gsDesign2} is complex.
Some additional high-level questions I have:
How are the classes used? In other words, which classes have registered S3 methods, and which are detected inside of functions with inherits() or %in% class()? And for the latter, can we redesign the functions to use S3 methods instead of these ad-hoc class-specific code chunks?
How are the classes related to each other? In other words, are some classes always accompanied by other classes, and thus are more like sub-classes? If yes, then this would inform the potential redesign from the previous point
In the current version of
gsDesign2
, there are couple of classes.fixed_design
: this class is created for enabling S3 method for summarizing/integer fixed design table. It is suggested to keep this class, since the summarizing/integering fixed designs can be different from summarizing group sequential design.gs_design
: similar to the class above.ahr
: this class is created for enabling S3 method for integer AHR design, considering theto_integer
method of AHR design is different from risk difference. I am wondering if we should divide in more details of the class, such asgs_design_ahr
,gs_design_rd
, etc. (code source: https://github.com/Merck/gsDesign2/blob/main/R/summary.R#L286C12-L286C23)wlr
: similar to the class above.maxcombo
: similar to the class above.non_binding
: this class can be set as attributes. (code source: https://github.com/Merck/gsDesign2/blob/main/R/gs_design_ahr.R#L379)In the current version of
simtrial
, we have the class ofcounting_process
andtte_data
: these 2 classes help with objects passing to the tests, which can be either a counting process, or a TTE dataset.simtrial_gs_wlr
: this class is created to summarize simulations with >=2 analyses. Maybe it is good we could keep this class short assim_gs_wlr
.simtrial_fixed_wlr
: this class is not currently available in simtrial, but would be useful in the future to summary simulations with 1 analysis only. Maybe it is good we could keep this class short assim_fixed_wlr
.sim_gs_rmst
: TBDsim_fixed_rmst
: TBDsim_gs_milestone
: TBDsim_fixed_milestone
: TBDTwo questions:
The text was updated successfully, but these errors were encountered: