diff --git a/tests/testthat/_snaps/estimate_incidence_rate.md b/tests/testthat/_snaps/estimate_incidence_rate.md index cabf6a1ab4..ba28293ec4 100644 --- a/tests/testthat/_snaps/estimate_incidence_rate.md +++ b/tests/testthat/_snaps/estimate_incidence_rate.md @@ -9,10 +9,10 @@ $conf_type [1] "exact" - $time_unit_input + $input_time_unit [1] "month" - $time_unit_output + $num_pt_year [1] 100 diff --git a/tests/testthat/_snaps/estimate_proportion.md b/tests/testthat/_snaps/estimate_proportion.md index 5e2eb8a9a6..95f9a2b75e 100644 --- a/tests/testthat/_snaps/estimate_proportion.md +++ b/tests/testthat/_snaps/estimate_proportion.md @@ -200,7 +200,7 @@ Output [,1] [,2] [,3] [1,] "39.00 (56.52%)" "38.00 (52.05%)" "31.00 (53.45%)" - [2,] "(37.1236, 63.4557)" "(36.5183, 54.7953)" "(33.3127, 57.6543)" + [2,] "(37.1236, 63.4557)" "(35.1170, 57.1709)" "(33.3127, 57.6543)" [,4] [1,] "108.00 (54.00%)" [2,] "(46.8585, 60.2254)" diff --git a/tests/testthat/_snaps/summarize_coxreg.md b/tests/testthat/_snaps/summarize_coxreg.md index ac69f853df..98b9138061 100644 --- a/tests/testthat/_snaps/summarize_coxreg.md +++ b/tests/testthat/_snaps/summarize_coxreg.md @@ -33,6 +33,45 @@ +# s_coxreg works with character covariates in the univariate case when interaction = TRUE + + Code + res + Output + $hr + $hr$`2 vs control (1)` + [1] 0.6386426 + + + $hr + $hr$`A Covariate Label` + numeric(0) + + $hr$` 1` + [1] 0.6284569 + + $hr$` 2` + [1] 0.5806499 + + $hr$` 3` + [1] 0.5486103 + + $hr$` 4` + [1] 0.6910725 + + + $hr + $hr$`Sex (F/M)` + numeric(0) + + $hr$` F` + [1] 0.6678243 + + $hr$` M` + [1] 0.5954021 + + + # a_coxreg works as expected Code @@ -185,6 +224,39 @@ Age All 1.01 (1.00, 1.02) 0.2486 +# summarize_coxreg works with character covariate in univariate case when interaction = TRUE + + Code + res + Output + n Hazard Ratio 95% CI p-value Interaction p-value + ———————————————————————————————————————————————————————————————————————————————————————————————— + Treatment: + ARM: 2 vs control (ARM: 1) 340 0.64 (0.43, 0.94) 0.0242 + Covariate: + COVAR2 340 0.7759 + F 0.67 (0.36, 1.22) + M 0.60 (0.36, 0.99) + +--- + + Code + res + Output + n Hazard Ratio 95% CI p-value Interaction p-value + ———————————————————————————————————————————————————————————————————————————————————————————————— + Treatment: + ARM: 2 vs control (ARM: 1) 340 0.64 (0.43, 0.94) 0.0242 + Covariate: + A Covariate Label 340 0.9883 + 1 0.63 (0.35, 1.14) + 2 0.58 (0.27, 1.26) + 3 0.55 (0.22, 1.35) + 4 0.69 (0.23, 2.07) + COVAR2 340 0.7759 + F 0.67 (0.36, 1.22) + M 0.60 (0.36, 0.99) + # summarize_coxreg adds the multivariate Cox regression layer to rtables Code