Skip to contents

Each subject is counted once, at the worst severity recorded.

Usage

tbl_ae_severity(
  adae,
  adsl = NULL,
  trt_var = "TRT01A",
  sev_var = "AESEV",
  teae_flag = "TRTEMFL",
  levels = c("MILD", "MODERATE", "SEVERE"),
  config = NULL
)

Arguments

adae

Adverse-event data.

adsl

Optional subject-level data for denominators.

trt_var

Treatment variable (resolved with tlf_resolve_trt()).

sev_var

Severity column.

teae_flag

Treatment-emergent flag column ("Y" rows are kept); NULL keeps all events.

levels

Severity levels from mildest to worst (matched case-insensitively).

config

A tlf_config(); NULL resolves through tlf_get_config().

Value

A tlf_table.

Examples

tbl_ae_severity(ex_adae, ex_adsl)
#> <tlf_table> 4 row(s) x 5 column(s)
#>  Maximum severity                Drug 10 mg (N=20) Drug 20 mg (N=20)
#>  Subjects with at least one TEAE 16 (80.0%)        17 (85.0%)       
#>    Mild                          5 (25.0%)         6 (30.0%)        
#>    Moderate                      6 (30.0%)         8 (40.0%)        
#>    Severe                        5 (25.0%)         3 (15.0%)        
#>  Placebo (N=20) Total (N=60)
#>  17 (85.0%)     50 (83.3%)  
#>  7 (35.0%)      18 (30.0%)  
#>  8 (40.0%)      22 (36.7%)  
#>  2 (10.0%)      10 (16.7%)  
#> Note: Subjects are counted once, at the maximum severity reported.