insightsengineering / cardx

R Package to Supplement ARD Functions Found in {cards}
https://insightsengineering.github.io/cardx/
Other
15 stars 2 forks source link

Add q-value ARD #11

Open ddsjoberg opened 9 months ago

ddsjoberg commented 9 months ago

Feature description

I am not sure what this would look like...but we'll need something 🤔 https://www.danieldsjoberg.com/gtsummary/reference/add_q.html

If we need to add an additional package dependency, add it to Suggests, use the cards function to check whether it's installed, and be sure to add a minimum version that is at least the version required in gtsummary.

ddsjoberg commented 9 months ago

Perhaps the input could be an ARD that has stat_names of "p.value", we subset the ARD to the p-value rows, apply stats::p.adjust(), we save the number p-values adjusted in the output along with the method, and update the context column to signify the adjusted status. That sounds easy enough?