Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update snapshots to fix autovalidate tests #986

Merged
merged 1 commit into from
Jun 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/estimate_incidence_rate.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
$conf_type
[1] "exact"

$time_unit_input
$input_time_unit
[1] "month"

$time_unit_output
$num_pt_year
[1] 100


Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/estimate_proportion.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down
72 changes: 72 additions & 0 deletions tests/testthat/_snaps/summarize_coxreg.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down