Assessments Outside Normal Limits Among Subject Without Abnormality at Baseline.

vst02_2(
  adam_db,
  armvar = .study$actualarm,
  lbl_vs_assessment = "Assessment",
  lbl_vs_abnormality = "Abnormality",
  lbl_overall = .study$lbl_overall,
  prune_0 = FALSE,
  deco = std_deco("VST02_2"),
  .study = list(actualarm = "ACTARM", lbl_overall = NULL)
)

vst02_2_lyt(
  armvar = .study$actualarm,
  lbl_vs_assessment = "Assessment",
  lbl_vs_abnormality = "Abnormality",
  lbl_overall = .study$lbl_overall,
  deco = std_deco("VST02_2"),
  .study = list(actualarm = "ACTARM", lbl_overall = NULL)
)

vst02_2_pre(adam_db)

Arguments

adam_db

(dm) object containing the ADaM datasets

armvar

(character) variable used for column splitting

lbl_vs_assessment

(character) the label of the assessment variable.

lbl_vs_abnormality

(character) the label of the abnormality variable.

lbl_overall

(character) label used for overall column, if set to NULL the overall column is omitted

prune_0

(logical) remove 0 count rows

deco

(character) decoration with title, subtitles and main_footer content

.study

(list) with default values for the arguments of the function

Details

  • Only count LOW or HIGH values.

  • Results of "LOW LOW" are treated as the same as "LOW", and "HIGH HIGH" the same as "HIGH".

  • Does not include a total column by default.

  • Does not remove zero-count rows unless overridden with prune_0 = TRUE.

Functions

  • vst02_2_lyt: vst02_2 Layout

  • vst02_2_pre: vst02_2 Preprocessing

Examples

library(dm)

db <- syn_test_data() %>%
  dm_zoom_to("advs") %>%
  filter(PARAM %in% c("Temperature")) %>%
  dm_update_zoomed() %>%
  vst02_2_pre()

vst02_2(adam_db = db)
#> Vital Signs Assessments Outside Normal Limits Among Subjects Without Abnormality at Baseline: {Specify Population}
#> Protocol: {{protocol}}
#> 
#> ————————————————————————————————————————————————————————————————
#> Assessment        A: Drug X        B: Placebo     C: Combination
#>   Abnormality      (N=134)          (N=134)          (N=132)    
#> ————————————————————————————————————————————————————————————————
#> Temperature                                                     
#>   Low           51/119 (42.9%)   53/119 (44.5%)   64/115 (55.7%)
#>   High          61/128 (47.7%)   53/121 (43.8%)   59/122 (48.4%)
#> ————————————————————————————————————————————————————————————————
#> 
#> Abnormalities are based on the {specify range used} ranges.  Table entries provide the number of patients with a during-treatment assessment abnormality in the direction specified among patients without abnormality at baseline.  Abnormalities reported in patients with missing baseline values are included. Any values collected more than {specify time interval} after the last dose of study drug are not included.
vst02_2_lyt(
  armvar = "ACTARM",
  lbl_overall = NULL
)
#> A Pre-data Table Layout
#> 
#> Column-Split Structure:
#> ACTARM (lvls) 
#> 
#> Row-Split Structure:
#> PARAM (lvls) -> ANRIND (** analysis **) 
#> 
syn_test_data() %>%
  vst02_2_pre()
#> ── Metadata ────────────────────────────────────────────────────────────────────
#> Tables: `adsl`, `adae`, `adaette`, `adcm`, `addv`, … (15 total)
#> Columns: 846
#> Primary keys: 2
#> Foreign keys: 1