tests/testthat/_snaps/lbt14.md

lbt14 functions with default argument value return expected result with test data

Code
  cat(export_as_txt(res, lpp = 100))
Output

  Parameter: Alanine Aminotransferase Measurement

    ———————————————————————————————————————————————————————————————————————————————
    Baseline Toxicity Grade                 A: Drug X   B: Placebo   C: Combination
            Post-baseline NCI-CTCAE Grade    (N=15)       (N=15)         (N=15)    
    ———————————————————————————————————————————————————————————————————————————————
    Not Low                                    12           12             14      
            Not Low                         5 (41.7%)   8 (66.7%)      5 (35.7%)   
            1                               3 (25.0%)       0              0       
            2                               2 (16.7%)    1 (8.3%)       1 (7.1%)   
            3                                   0        1 (8.3%)      5 (35.7%)   
            4                               2 (16.7%)   2 (16.7%)      3 (21.4%)   
    1                                           1           2              0       
            Not Low                         1 (100%)     2 (100%)          0       
    2                                           1           1              0       
            Not Low                             0        1 (100%)          0       
            4                               1 (100%)        0              0       
    3                                           1           0              1       
            3                               1 (100%)        0           1 (100%)

lbt14 functions with default argument value return expected result with test data when direction = high

Code
  cat(export_as_txt(res, lpp = 100))
Output

  Parameter: Alanine Aminotransferase Measurement

    ———————————————————————————————————————————————————————————————————————————————
    Baseline Toxicity Grade                 A: Drug X   B: Placebo   C: Combination
            Post-baseline NCI-CTCAE Grade    (N=15)       (N=15)         (N=15)    
    ———————————————————————————————————————————————————————————————————————————————
    Not High                                   15           15             15      
            Not High                        15 (100%)   15 (100%)      15 (100%)

lbt14 functions with gr_missing = excl return expected result with test data

Code
  cat(export_as_txt(res, lpp = 100))
Output

  Parameter: Alanine Aminotransferase Measurement

    ———————————————————————————————————————————————————————————————————————————————
    Baseline Toxicity Grade                 A: Drug X   B: Placebo   C: Combination
            Post-baseline NCI-CTCAE Grade    (N=15)       (N=15)         (N=15)    
    ———————————————————————————————————————————————————————————————————————————————
    Not Low                                    12           12             14      
            Not Low                         5 (41.7%)   8 (66.7%)      5 (35.7%)   
            1                               3 (25.0%)       0              0       
            2                               2 (16.7%)    1 (8.3%)       1 (7.1%)   
            3                                   0        1 (8.3%)      5 (35.7%)   
            4                               2 (16.7%)   2 (16.7%)      3 (21.4%)   
    1                                           1           2              0       
            Not Low                         1 (100%)     2 (100%)          0       
    2                                           1           1              0       
            Not Low                             0        1 (100%)          0       
            4                               1 (100%)        0              0       
    3                                           1           0              1       
            3                               1 (100%)        0           1 (100%)

lbt14 functions with gr_missing = gr_0 return expected result with test data

Code
  cat(export_as_txt(res, lpp = 100))
Output

  Parameter: Alanine Aminotransferase Measurement

    ———————————————————————————————————————————————————————————————————————————————
    Baseline Toxicity Grade                 A: Drug X   B: Placebo   C: Combination
            Post-baseline NCI-CTCAE Grade    (N=15)       (N=15)         (N=15)    
    ———————————————————————————————————————————————————————————————————————————————
    1                                           1           2              0       
            Not Low                         1 (100%)     2 (100%)          0       
    2                                           1           1              0       
            Not Low                             0        1 (100%)          0       
            4                               1 (100%)        0              0       
    3                                           1           0              1       
            3                               1 (100%)        0           1 (100%)   
    Not Low                                    12           12             14      
            Not Low                         5 (41.7%)   8 (66.7%)      5 (35.7%)   
            1                               3 (25.0%)       0              0       
            2                               2 (16.7%)    1 (8.3%)       1 (7.1%)   
            3                                   0        1 (8.3%)      5 (35.7%)   
            4                               2 (16.7%)   2 (16.7%)      3 (21.4%)

lbt14 can handle all NA values

Code
  cat(export_as_txt(res, lpp = 100))
Output

  Parameter: Alanine Aminotransferase Measurement

    ———————————————————————————————————————————————————————————————————————————————
    BTOXGR                                  A: Drug X   B: Placebo   C: Combination
            Post-baseline NCI-CTCAE Grade    (N=15)       (N=15)         (N=15)    
    ———————————————————————————————————————————————————————————————————————————————
    Missing                                    15           15             15      
            Missing                         15 (100%)   15 (100%)      15 (100%)

lbt14 can handle some NA values

Code
  cat(export_as_txt(res, lpp = 100))
Output

  Parameter: Alanine Aminotransferase Measurement

    ———————————————————————————————————————————————————————————————————————————————
    BTOXGR                                  A: Drug X   B: Placebo   C: Combination
            Post-baseline NCI-CTCAE Grade    (N=15)       (N=15)         (N=15)    
    ———————————————————————————————————————————————————————————————————————————————
    Not Low                                    12           12             12      
            Not Low                         5 (41.7%)   8 (66.7%)      4 (33.3%)   
            1                               3 (25.0%)       0              0       
            2                               2 (16.7%)    1 (8.3%)          0       
            3                                   0        1 (8.3%)      4 (33.3%)   
            4                               2 (16.7%)   2 (16.7%)      2 (16.7%)   
            Missing                             0           0          2 (16.7%)   
    1                                           1           2              0       
            Not Low                             0       1 (50.0%)          0       
            Missing                         1 (100%)    1 (50.0%)          0       
    2                                           1           1              0       
            Not Low                             0        1 (100%)          0       
            4                               1 (100%)        0              0       
    3                                           1           0              1       
            3                               1 (100%)        0           1 (100%)   
    Missing                                     0           0              2       
            Not Low                             0           0          1 (50.0%)   
            3                                   0           0          1 (50.0%)

lbt14 can accept different gr_missing

Code
  cat(export_as_txt(res1, lpp = 100))
Output

  Parameter: Alanine Aminotransferase Measurement

    ———————————————————————————————————————————————————————————————————————————————
    Baseline Toxicity Grade                 A: Drug X   B: Placebo   C: Combination
            Post-baseline NCI-CTCAE Grade    (N=15)       (N=15)         (N=15)    
    ———————————————————————————————————————————————————————————————————————————————
    Not Low                                    12           12             14      
            Not Low                         5 (41.7%)   8 (66.7%)      5 (35.7%)   
            1                               3 (25.0%)       0              0       
            2                               2 (16.7%)    1 (8.3%)       1 (7.1%)   
            3                                   0        1 (8.3%)      5 (35.7%)   
            4                               2 (16.7%)   2 (16.7%)      3 (21.4%)   
    1                                           1           2              0       
            Not Low                         1 (100%)     2 (100%)          0       
    2                                           1           1              0       
            Not Low                             0        1 (100%)          0       
            4                               1 (100%)        0              0       
    3                                           1           0              1       
            3                               1 (100%)        0           1 (100%)
Code
  cat(export_as_txt(res2, lpp = 100))
Output

  Parameter: Alanine Aminotransferase Measurement

    ———————————————————————————————————————————————————————————————————————————————
    Baseline Toxicity Grade                 A: Drug X   B: Placebo   C: Combination
            Post-baseline NCI-CTCAE Grade    (N=15)       (N=15)         (N=15)    
    ———————————————————————————————————————————————————————————————————————————————
    Not Low                                    12           12             14      
            Not Low                         5 (41.7%)   8 (66.7%)      5 (35.7%)   
            1                               3 (25.0%)       0              0       
            2                               2 (16.7%)    1 (8.3%)       1 (7.1%)   
            3                                   0        1 (8.3%)      5 (35.7%)   
            4                               2 (16.7%)   2 (16.7%)      3 (21.4%)   
    1                                           1           2              0       
            Not Low                         1 (100%)     2 (100%)          0       
    2                                           1           1              0       
            Not Low                             0        1 (100%)          0       
            4                               1 (100%)        0              0       
    3                                           1           0              1       
            3                               1 (100%)        0           1 (100%)
Code
  cat(export_as_txt(res3, lpp = 100))
Output

  Parameter: Alanine Aminotransferase Measurement

    ———————————————————————————————————————————————————————————————————————————————
    Baseline Toxicity Grade                 A: Drug X   B: Placebo   C: Combination
            Post-baseline NCI-CTCAE Grade    (N=15)       (N=15)         (N=15)    
    ———————————————————————————————————————————————————————————————————————————————
    1                                           1           2              0       
            Not Low                         1 (100%)     2 (100%)          0       
    2                                           1           1              0       
            Not Low                             0        1 (100%)          0       
            4                               1 (100%)        0              0       
    3                                           1           0              1       
            3                               1 (100%)        0           1 (100%)   
    Not Low                                    12           12             14      
            Not Low                         5 (41.7%)   8 (66.7%)      5 (35.7%)   
            1                               3 (25.0%)       0              0       
            2                               2 (16.7%)    1 (8.3%)       1 (7.1%)   
            3                                   0        1 (8.3%)      5 (35.7%)   
            4                               2 (16.7%)   2 (16.7%)      3 (21.4%)

lbt14 can handle all NA values with direction = high

Code
  cat(export_as_txt(res, lpp = 100))
Output

  Parameter: Alanine Aminotransferase Measurement

    ———————————————————————————————————————————————————————————————————————————————
    BTOXGR                                  A: Drug X   B: Placebo   C: Combination
            Post-baseline NCI-CTCAE Grade    (N=15)       (N=15)         (N=15)    
    ———————————————————————————————————————————————————————————————————————————————
    Missing                                    15           15             15      
            Missing                         15 (100%)   15 (100%)      15 (100%)

lbt14 can handle some NA values with direction = high

Code
  cat(export_as_txt(res, lpp = 100))
Output

  Parameter: Alanine Aminotransferase Measurement

    ————————————————————————————————————————————————————————————————————————————————
    BTOXGR                                  A: Drug X    B: Placebo   C: Combination
            Post-baseline NCI-CTCAE Grade     (N=15)       (N=15)         (N=15)    
    ————————————————————————————————————————————————————————————————————————————————
    Not High                                    14           15             13      
            Not High                        13 (92.9%)   14 (93.3%)     12 (92.3%)  
            Missing                          1 (7.1%)     1 (6.7%)       1 (7.7%)   
    Missing                                     1            0              2       
            Not High                         1 (100%)        0           2 (100%)

lbt14 can accept different gr_missing with direction = high

Code
  cat(export_as_txt(res1, lpp = 100))
Output

  Parameter: Alanine Aminotransferase Measurement

    ———————————————————————————————————————————————————————————————————————————————
    Baseline Toxicity Grade                 A: Drug X   B: Placebo   C: Combination
            Post-baseline NCI-CTCAE Grade    (N=15)       (N=15)         (N=15)    
    ———————————————————————————————————————————————————————————————————————————————
    Not High                                   15           15             15      
            Not High                        15 (100%)   15 (100%)      15 (100%)
Code
  cat(export_as_txt(res2, lpp = 100))
Output

  Parameter: Alanine Aminotransferase Measurement

    ———————————————————————————————————————————————————————————————————————————————
    Baseline Toxicity Grade                 A: Drug X   B: Placebo   C: Combination
            Post-baseline NCI-CTCAE Grade    (N=15)       (N=15)         (N=15)    
    ———————————————————————————————————————————————————————————————————————————————
    Not High                                   15           15             15      
            Not High                        15 (100%)   15 (100%)      15 (100%)
Code
  cat(export_as_txt(res3, lpp = 100))
Output

  Parameter: Alanine Aminotransferase Measurement

    ———————————————————————————————————————————————————————————————————————————————
    Baseline Toxicity Grade                 A: Drug X   B: Placebo   C: Combination
            Post-baseline NCI-CTCAE Grade    (N=15)       (N=15)         (N=15)    
    ———————————————————————————————————————————————————————————————————————————————
    Not High                                   15           15             15      
            Not High                        15 (100%)   15 (100%)      15 (100%)


Try the chevron package in your browser

Any scripts or data that you put into this service are public.

chevron documentation built on June 20, 2025, 5:08 p.m.