ctae: Clinical trials adverse events

View source: R/ctgov.R

ctaeR Documentation

Clinical trials adverse events

Description

Summarize and format adverse events for ct.gov/FDA reporting.

Usage

ctae(
  data,
  id = "casenum",
  toxdesc = "toxdesc",
  toxcat = "toxcat",
  comment = NULL
)

ctae_table(x, sae, atrisk)

Arguments

data

a data frame with adverse events

id, toxdesc, toxcat, comment

column names with patient IDs, toxicity descriptions/terms, toxicity categories/organ systems, and comments/additional details (e.g., clarifications for other/specify)

sae

logical; if TRUE, result is formatted for reporting SAEs

atrisk

number of patients at-risk

Examples

dd <- data.frame(
  casenum = rep(1:2, c(3, 5)),
  toxdesc = c('aa', 'aa', 'b', 'aa', 'aaa', 'b', 'bb', 'c'),
  toxcat = c('A', 'A', 'B', 'A', 'A', 'B', 'B', 'C')
)
ae <- ctae(dd)
ae
ctae_table(ae, FALSE, 20)


raredd/desmon2 documentation built on April 13, 2025, 1:56 a.m.