incidence_table: provide standard structured tables to report incidence rates...

View source: R/incidence_table.R

incidence_tableR Documentation

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)

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

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 o is the number of occurrences, and p a percentage of participants with the term.

See Also

safety_summary

Examples

safety_statistics <- safety_summary(safety,
           exposed=c("Experimental"=60,"Control"=67))
head( incidence_table(safety_statistics, type="serious") )

eudract documentation built on Aug. 10, 2023, 1:10 a.m.