Skip to contents

The rmpt03 table provides an overview of duration of exposure.

Usage

rmpt03_main(
  adam_db,
  summaryvars = "AGEGR1",
  show_tot = TRUE,
  row_split_var = NULL,
  col_split_var = "SEX",
  overall_col_lbl = "All Genders",
  ...
)

rmpt03_pre(adam_db, summaryvars = "AGEGR1", ...)

rmpt03

Format

An object of class chevron_t of length 1.

Arguments

adam_db

(list of data.frames) object containing the ADaM datasets

summaryvars

(string) variables to be analyzed. The label attribute of the corresponding columns in adex table of adam_db is used as label.

show_tot

(flag) whether to display the cumulative total.

row_split_var

(string) the name of the column that containing variable to split exposure by.

col_split_var

(string) additional column splitting variable.

overall_col_lbl

(string) name of the overall column. If NULL, no overall level is added.

...

not used.

Details

  • Person time is the sum of exposure across all patients.

  • Summary statistics are by default based on the number of patients in the corresponding N row (number of non-missing values).

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

Functions

  • rmpt03_main(): Main TLG function

  • rmpt03_pre(): Preprocessing

Examples

pre_data <- dunlin::propagate(syn_data, "adsl", "AGEGR1", "USUBJID")
#> 
#> Updating: adab with: AGEGR1
#> Updating: adae with: AGEGR1
#> Updating: adaette with: AGEGR1
#> Updating: adcm with: AGEGR1
#> Updating: addv with: AGEGR1
#> Updating: adeg with: AGEGR1
#> Updating: adex with: AGEGR1
#> Updating: adhy with: AGEGR1
#> Updating: adlb with: AGEGR1
#> Updating: admh with: AGEGR1
#> Updating: adpc with: AGEGR1
#> Updating: adpp with: AGEGR1
#> Updating: adqs with: AGEGR1
#> Skipping: adrs
#> Updating: adsub with: AGEGR1
#> Skipping: adtr
#> Updating: adtte with: AGEGR1
#> Updating: advs with: AGEGR1
run(rmpt03, pre_data)
#>                                              All Genders                       F                            M             
#>   Age Group                             Patients     Person time     Patients     Person time     Patients     Person time
#>                                         (N=400)        (N=400)       (N=231)        (N=231)       (N=169)        (N=169)  
#>   ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
#>   <65                                 399 (99.8%)       49488      231 (100.0%)      27364      168 (99.4%)       22124   
#>   >=65                                  1 (0.2%)         212         0 (0.0%)          0          1 (0.6%)         212    
#>   Total patients number/person time   400 (100.0%)      49700      231 (100.0%)      27364      169 (100.0%)      22336