After looking the code in prepare_ae_specific_subgroup, I feel we need to talk about the function design @wangben718
Is it possible to use extend_ae_specific_subgroup? that basically add an indicator to rerun prepare_ae_specific + extend_ae_specific + format_ae_specific in each subgroup?
Create an internal function called obtain_ae_specifc_subgroup. If outdata$subgroup is not null, we will rerun the code in each subgroup.
Create an internal function called tlf_ae_specific_subgroup. If outdata$subgroup is not null, we will generate the TLFs using this internal function if user called tlf_ae_sepcific.
Benefit:
all extended_ae_specific functions can be used
can potentially extend the framework for ae_summary analysis in the future.
After looking the code in
prepare_ae_specific_subgroup
, I feel we need to talk about the function design @wangben718Is it possible to use
extend_ae_specific_subgroup
? that basically add an indicator to rerunprepare_ae_specific
+extend_ae_specific
+format_ae_specific
in each subgroup?Create an internal function called
obtain_ae_specifc_subgroup
. Ifoutdata$subgroup
is not null, we will rerun the code in each subgroup.Create an internal function called
tlf_ae_specific_subgroup
. Ifoutdata$subgroup
is not null, we will generate the TLFs using this internal function if user calledtlf_ae_sepcific
.Benefit:
extended_ae_specific
functions can be usedae_summary
analysis in the future.