incidence_table: provide standard structured tables to report incidence rates of AEs by arm
Description
provide standard structured tables to report incidence rates of AEs by arm
Usage
incidence_table(safety, type = c("non_serious", "serious"), percent_round = 0)
Value
a data.frame that can be directly printed as a table to a report. Each arm has its own column
and the text contains "p% (r, o)", where r is the number of participants with the term,
o is the number of occurrences, and p a percentage of participants with the term.
Arguments
safety
an object created by safety_summary
type
a choice of "non_serious" (default) or "serious" as to which type of AE to report on
percent_round
integer giving the number of decimal places to round the incidence
percentage. Default of 0. Maybe you need more if there is a large sample size
and a rare event of interest