pharmaverse / cardinal

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

[Bug]: make_table_04() does not count population groups only for randomized subjects #220

Open jknizia opened 3 months ago

jknizia commented 3 months ago

What happened?

As far as I interpret Tab. 4 from the FDA guide, ITT, safety, and per-protocol population should be counted only for randomized subjects. (See screenshot below.) image

However, make_table_04() displays these counts for all subjects, not only randomized. The screenshot below shows 134 subjects for drug X included in ITT and safety population, although only 59 subjects have been randomized. image

sessionInfo()

No response

Relevant log output

No response