From 37c3c06beefe4fd40925b0837d8cec6d9ff18ca5 Mon Sep 17 00:00:00 2001 From: Emily de la Rua Date: Wed, 9 Oct 2024 18:18:54 -0400 Subject: [PATCH] Update outdated snapshots --- book/tables/efficacy/rbmit01.qmd | 17 +++++++++++++++++ .../_snaps/stable/tables-efficacy-mmrmt01.md | 4 ++-- .../_snaps/stable/tables-efficacy-ratet01.md | 12 ++++++------ 3 files changed, 25 insertions(+), 8 deletions(-) diff --git a/book/tables/efficacy/rbmit01.qmd b/book/tables/efficacy/rbmit01.qmd index 345024794c..5e5b4c91c7 100644 --- a/book/tables/efficacy/rbmit01.qmd +++ b/book/tables/efficacy/rbmit01.qmd @@ -110,6 +110,7 @@ Define which imputation method to use, then create samples for the imputation pa +::: {.content-visible when-profile="stable"} ```{r, warning = FALSE, opts.label = "skip_test_strict"} #| code-fold: show @@ -122,6 +123,22 @@ draws_obj <- rbmi::draws( method = draws_method ) ``` +::: + +::: {.content-visible when-profile="development"} +```{r, warning = FALSE, opts.label = "skip_test_strict"} +#| code-fold: show +set.seed(123) +draws_method <- method_bayes() + +draws_obj <- rbmi::draws( + data = data_full, + data_ice = data_ice, + vars = draws_vars, + method = draws_method +) +``` +::: ## Impute diff --git a/package/tests/testthat/_snaps/stable/tables-efficacy-mmrmt01.md b/package/tests/testthat/_snaps/stable/tables-efficacy-mmrmt01.md index b197682aed..138240e761 100644 --- a/package/tests/testthat/_snaps/stable/tables-efficacy-mmrmt01.md +++ b/package/tests/testthat/_snaps/stable/tables-efficacy-mmrmt01.md @@ -13,7 +13,7 @@ Difference in Adjusted Means (SE) 0.759 (0.973) -0.325 (0.976) 95% CI (-1.155, 2.672) (-2.243, 1.593) Relative Increase (%) 21.8% -9.3% - p-value (MMRM) 0.4362 0.7394 + p-value (MMRM) 0.4362 0.7393 WEEK 2 DAY 15 n 134 134 132 Adjusted Mean (SE) 9.135 (0.768) 9.018 (0.767) 8.509 (0.773) @@ -21,7 +21,7 @@ Difference in Adjusted Means (SE) -0.117 (1.087) -0.626 (1.090) 95% CI (-2.253, 2.020) (-2.768, 1.517) Relative Increase (%) -1.3% -6.8% - p-value (MMRM) 0.9146 0.5662 + p-value (MMRM) 0.9147 0.5662 WEEK 3 DAY 22 n 134 134 132 Adjusted Mean (SE) 13.547 (0.871) 16.014 (0.871) 15.789 (0.877) diff --git a/package/tests/testthat/_snaps/stable/tables-efficacy-ratet01.md b/package/tests/testthat/_snaps/stable/tables-efficacy-ratet01.md index 5c7d1efcc1..d746709058 100644 --- a/package/tests/testthat/_snaps/stable/tables-efficacy-ratet01.md +++ b/package/tests/testthat/_snaps/stable/tables-efficacy-ratet01.md @@ -21,14 +21,14 @@ Rate 7.2364 8.2148 9.8131 Adjusted (QP) exacerbation rate (per year) Rate 2.4550 2.8514 3.4304 - Rate CI (1.6194, 3.7219) (1.8974, 4.2850) (2.2946, 5.1284) + Rate CI (1.6194, 3.7219) (1.8974, 4.2850) (2.2946, 5.1284) Rate Ratio 1.1615 1.3973 - Rate Ratio CI (0.6462, 2.0877) (0.7789, 2.5067) - p-value 0.6169 0.2619 + Rate Ratio CI (0.6462, 2.0877) (0.7789, 2.5067) + p-value 0.6169 0.2619 Adjusted (NB) exacerbation rate (per year) Rate 2.7374 2.8150 2.9789 - Rate CI (2.3932, 3.1311) (2.4681, 3.2106) (2.6152, 3.3932) + Rate CI (2.3932, 3.1311) (2.4681, 3.2106) (2.6152, 3.3932) Rate Ratio 1.0283 1.0882 - Rate Ratio CI (0.8856, 1.1941) (0.9381, 1.2624) - p-value 0.7140 0.2643 + Rate Ratio CI (0.8856, 1.1941) (0.9381, 1.2624) + p-value 0.7140 0.2643