metalite.ae
metalite.ae copied to clipboard
AE specification subgroup analysis
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 rerunprepare_ae_specific+extend_ae_specific+format_ae_specificin each subgroup?
extend_ae_specific_subgroup <- function(outdata, subgroup){
outdata$subgroup <- subgroup
outdata
}
-
Create an internal function called
obtain_ae_specifc_subgroup. Ifoutdata$subgroupis not null, we will rerun the code in each subgroup. -
Create an internal function called
tlf_ae_specific_subgroup. Ifoutdata$subgroupis not null, we will generate the TLFs using this internal function if user calledtlf_ae_sepcific.
Benefit:
- all
extended_ae_specificfunctions can be used - can potentially extend the framework for
ae_summaryanalysis in the future.