Skip to content

Commit

Permalink
Update surv_time table snapshots (#78)
Browse files Browse the repository at this point in the history
Align all snapshots with
insightsengineering/tlg-catalog#145
  • Loading branch information
edelarua authored Nov 7, 2023
1 parent a29b7c7 commit bfbed11
Show file tree
Hide file tree
Showing 4 changed files with 355 additions and 281 deletions.
12 changes: 4 additions & 8 deletions tests/testthat/_snaps/table_dort01.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
Median 5.3 6.2 5.3
95% CI (4.6, 5.8) (5.4, 6.3) (4.6, 5.8)
25% and 75%-ile 3.8, 6.3 4.6, 6.4 4.0, 6.1
Range (censored) 3.6 to 6.3 3.3 to 6.5 3.3 to 6.4
Range (event) 0.5 to 6.4 0.9 to 6.5 0.6 to 6.6
Range 0.5 to 6.4 0.9 to 6.5 0.6 to 6.6
12 Months duration
Patients remaining at risk NA NA NA
Event Free Rate (%) NA NA NA
Expand All @@ -41,8 +40,7 @@
Median 5.3 6.2 5.3
95% CI (4.6, 5.8) (5.4, 6.3) (4.6, 5.8)
25% and 75%-ile 3.8, 6.3 4.6, 6.4 4.0, 6.1
Range (censored) 3.6 to 6.3 3.3 to 6.5 3.3 to 6.4
Range (event) 0.5 to 6.4 0.9 to 6.5 0.6 to 6.6
Range 0.5 to 6.4 0.9 to 6.5 0.6 to 6.6
Unstratified Analysis
p-value (log-rank) 0.0223 0.6659
Hazard Ratio 0.60 0.90
Expand All @@ -66,8 +64,7 @@
Median 5.3 6.2 5.3
90% CI (4.6, 5.8) (5.5, 6.3) (4.6, 5.7)
25% and 75%-ile 3.8, 6.3 4.6, 6.4 4.0, 6.1
Range (censored) 3.6 to 6.3 3.3 to 6.5 3.3 to 6.4
Range (event) 0.5 to 6.4 0.9 to 6.5 0.6 to 6.6
Range 0.5 to 6.4 0.9 to 6.5 0.6 to 6.6
12 Months duration
Patients remaining at risk NA NA NA
Event Free Rate (%) NA NA NA
Expand All @@ -91,8 +88,7 @@
Median 5.3 6.2 5.3
95% CI (4.6, 5.8) (5.4, 6.3) (4.6, 5.8)
25% and 75%-ile 3.8, 6.3 4.6, 6.4 4.0, 6.1
Range (censored) 3.6 to 6.3 3.3 to 6.5 3.3 to 6.4
Range (event) 0.5 to 6.4 0.9 to 6.5 0.6 to 6.6
Range 0.5 to 6.4 0.9 to 6.5 0.6 to 6.6
6 Months duration
Patients remaining at risk 10 18 7
Event Free Rate (%) 33.46 50.23 30.56
Expand Down
108 changes: 63 additions & 45 deletions tests/testthat/_snaps/table_lbt11.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,61 +3,79 @@
Code
res
Output
ARM A ARM B ARM C
(N=134) (N=134) (N=132)
———————————————————————————————————————————————————————————————————————————————
Patients with LLT event (%) 20 (14.9%) 9 (6.7%) 9 (6.8%)
Patients without LLT event (%) 114 (85.1%) 125 (93.3%) 123 (93.2%)
Time to 1st LLT Event (DAYS)
Median NA NA 728.0
95% CI NA (724.0, NA) NA
25% and 75%-ile 618.0, NA 724.0, NA 728.0, 728.0
Range (censored) 1.0 to 731.0 1.0 to 728.0 1.0 to 722.0
Range (event) 34.0 to 666.0 139.0 to 724.0 10.0 to 728.0
Unstratified Analysis
p-value (log-rank) 0.0295 0.1687
Hazard Ratio 0.43 0.58
95% CI (0.19, 0.94) (0.26, 1.27)
ARM A ARM B ARM C
(N=134) (N=134) (N=132)
———————————————————————————————————————————————————————————————————————————————————————
Patients with LLT event (%) 20 (14.9%) 9 (6.7%) 9 (6.8%)
Patients without LLT event (%) 114 (85.1%) 125 (93.3%) 123 (93.2%)
Time to 1st LLT Event (DAYS)
Median NA NA 728.0
95% CI NA (724.0, NA) NA
25% and 75%-ile 618.0, NA 724.0, NA 728.0, 728.0
Range 1.0 to 731.0 {1} 1.0 to 728.0 {2} 1.0 to 728.0 {3}
Unstratified Analysis
p-value (log-rank) 0.0295 0.1687
Hazard Ratio 0.43 0.58
95% CI (0.19, 0.94) (0.26, 1.27)
———————————————————————————————————————————————————————————————————————————————————————
{1} - Censored observations: range minimum & maximum
{2} - Censored observations: range minimum & maximum
{3} - Censored observation: range minimum
———————————————————————————————————————————————————————————————————————————————————————

# LBT11 variant 2 works as expected

Code
res
Output
ARM A ARM B ARM C
(N=134) (N=134) (N=132)
———————————————————————————————————————————————————————————————————————————————
Patients with LLT event (%) 20 (14.9%) 9 (6.7%) 9 (6.8%)
Patients without LLT event (%) 114 (85.1%) 125 (93.3%) 123 (93.2%)
Time to 1st LLT Event (DAYS)
Median NA NA 728.0
95% CI NA (724.0, NA) NA
25% and 75%-ile 618.0, NA 724.0, NA 728.0, 728.0
Range (censored) 1.0 to 731.0 1.0 to 728.0 1.0 to 722.0
Range (event) 34.0 to 666.0 139.0 to 724.0 10.0 to 728.0
ARM A ARM B ARM C
(N=134) (N=134) (N=132)
———————————————————————————————————————————————————————————————————————————————————————
Patients with LLT event (%) 20 (14.9%) 9 (6.7%) 9 (6.8%)
Patients without LLT event (%) 114 (85.1%) 125 (93.3%) 123 (93.2%)
Time to 1st LLT Event (DAYS)
Median NA NA 728.0
95% CI NA (724.0, NA) NA
25% and 75%-ile 618.0, NA 724.0, NA 728.0, 728.0
Range 1.0 to 731.0 {1} 1.0 to 728.0 {2} 1.0 to 728.0 {3}
———————————————————————————————————————————————————————————————————————————————————————
{1} - Censored observations: range minimum & maximum
{2} - Censored observations: range minimum & maximum
{3} - Censored observation: range minimum
———————————————————————————————————————————————————————————————————————————————————————

# LBT11 variant 3 works as expected

Code
res
Output
ARM A ARM B ARM C
(N=134) (N=134) (N=132)
———————————————————————————————————————————————————————————————————————————————
Patients with LLT event (%) 20 (14.9%) 9 (6.7%) 9 (6.8%)
Patients without LLT event (%) 114 (85.1%) 125 (93.3%) 123 (93.2%)
Time to 1st LLT Event (DAYS)
Median NA NA 728.0
95% CI NA (724.0, NA) NA
25% and 75%-ile 618.0, NA 724.0, NA 728.0, 728.0
Range (censored) 1.0 to 731.0 1.0 to 728.0 1.0 to 722.0
Range (event) 34.0 to 666.0 139.0 to 724.0 10.0 to 728.0
Unstratified Analysis
p-value (log-rank) 0.0295 0.1687
Hazard Ratio 0.43 0.58
95% CI (0.19, 0.94) (0.26, 1.27)
Stratified By: RACE, SEX
p-value (log-rank) 0.0858 0.1605
Hazard Ratio 0.51 0.57
95% CI (0.23, 1.12) (0.26, 1.26)
ARM A ARM B ARM C
(N=134) (N=134) (N=132)
———————————————————————————————————————————————————————————————————————————————————————
Patients with LLT event (%) 20 (14.9%) 9 (6.7%) 9 (6.8%)
Patients without LLT event (%) 114 (85.1%) 125 (93.3%) 123 (93.2%)
Time to 1st LLT Event (DAYS)
Median NA NA 728.0
95% CI NA (724.0, NA) NA
25% and 75%-ile 618.0, NA 724.0, NA 728.0, 728.0
Range 1.0 to 731.0 {1} 1.0 to 728.0 {2} 1.0 to 728.0 {3}
Unstratified Analysis
p-value (log-rank) 0.0295 0.1687
Hazard Ratio 0.43 0.58
95% CI (0.19, 0.94) (0.26, 1.27)
Stratified By: RACE, SEX
p-value (log-rank) 0.0858 0.1605
Hazard Ratio 0.51 0.57
95% CI (0.23, 1.12) (0.26, 1.26)
———————————————————————————————————————————————————————————————————————————————————————
{1} - Censored observations: range minimum & maximum
{2} - Censored observations: range minimum & maximum
{3} - Censored observation: range minimum
———————————————————————————————————————————————————————————————————————————————————————

Loading

0 comments on commit bfbed11

Please sign in to comment.