pharmaverse / cardinal

FDA Safety Tables and Figures
https://pharmaverse.github.io/cardinal/
Other
42 stars 6 forks source link

Create `make_table_32_gtsum` #113

Closed aassuied-ps closed 1 year ago

aassuied-ps commented 1 year ago

Create function make_table_32_gtsum to build table 32 using the gt and gtsummary packages. See #17 and https://pharmaverse.github.io/falcon/quarto/table-templates/template-table_32.html for specifications for this table.

The table output should be very similar to the output created by make_table_32.

The Table 32 template page on the falcon site will be updated once the function is ready.

aassuied-ps commented 1 year ago

A first draft has been posted. I saw there is an issue on the add_overall() function. We can not enter the label we want so far. See here: https://github.com/ddsjoberg/gtsummary/issues/1505

Should we modify that and add the label of the overall column in the modify_header() function? Other gtsummary tables we have are currently using add_overall().

Is there a way to use our alt_counts_df that we're using with rtables and tern? For now what I did is joining ADVS with the population table (ADSL).

edelarua commented 1 year ago

@ayogasekaram do you want to review Alex's work for this? You can probably offer more insight than me since you have also worked on a table with gt.

ayogasekaram commented 1 year ago

@edelarua yes of course! I'll review this :)