Description Usage Arguments Value Author(s) Examples
View source: R/irbtox_summary.R
This function is design to replicate irbtoxrep.sas macro AE summary output for Mayo DSMB reports.
1 2 3 4 5 6 7 8 9 10 | irbtox_summary(
cytox,
id = "dcntr_id",
byvar = "arm",
grade.term = "grade",
relation.term = "rel_smed",
tox.term = "toxicity",
prot_num = "",
s_desc = ""
)
|
cytox |
The toxicity dataset containing multiple observations per patient with one observation per AE > grade 0 |
id |
The patient ID variable used in the dataset |
byvar |
Variable used to separate summary by arm. If not present, "All Patients" printed for arm |
grade.term |
Character. The variable that contains the AE grade |
relation.term |
Character. The variable that containst the AE attribution |
tox.term |
Character. The variable that contains the toxicity (MEDRA) code |
prot_num |
The study protocol number. Found in protref$dc_num |
s_desc |
Short description of the study. Found in protref$s_desc. |
This function returns a list of 1: Protocol Number and evaluable patients per Arm as a string, 2: Summary AE table, and 3: Total number of evaluable patients.
Sawyer Jacobson
Adam Pettinger
1 2 3 4 5 6 7 | #With data loaded for A041501
crtlibn(d = 'A041501')
irb.summary <- irbtox_summary(cytox = cytox, id = "dcntr_id", byvar = "arm", tox.term = "toxicity",
prot_num = protref$dc_num, s_desc = protref$shrt_ttl_m)
irb.summary$table
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.