Skip to content

Commit

Permalink
Failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
edelarua committed Oct 16, 2024
1 parent f085c21 commit ecdef46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 39 deletions.
33 changes: 0 additions & 33 deletions tests/testthat/_snaps/summarize_glm_count.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,39 +115,6 @@

# h_ppmeans works with healthy input

Code
fits
Output
$glm_fit
Call: stats::glm(formula = formula, family = stats::poisson(link = "log"),
data = .df_row, offset = offset)
Coefficients:
(Intercept) REGION1Asia REGION1Eurasia
2.01066 0.07631 0.64426
REGION1Europe REGION1North America REGION1South America
2.13097 -0.07450 0.38102
ARMCDARM B ARMCDARM C
0.11048 -0.17694
Degrees of Freedom: 199 Total (i.e. Null); 192 Residual
Null Deviance: 983.8
Residual Deviance: 939 AIC: 1498
$emmeans_fit
ARMCD rate SE df asymp.LCL asymp.UCL
ARM A 12.6 1.238 Inf 10.43 15.3
ARM B 14.1 1.285 Inf 11.81 16.9
ARM C 10.6 0.971 Inf 8.85 12.7
Results are averaged over the levels of: REGION1
Confidence level used: 0.95
Intervals are back-transformed from the log scale

---

Code
fits2
Output
Expand Down
13 changes: 7 additions & 6 deletions tests/testthat/test-summarize_glm_count.R
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,14 @@ testthat::test_that("h_ppmeans works with healthy input", {
withr::with_options(
opts_partial_match_old,
{
fits <- h_glm_count(
.var = "AVAL",
.df_row = anl,
variables = list(arm = "ARMCD", offset = "lgTMATRSK", covariates = c("REGION1")),
distribution = "poisson"
testthat::expect_silent(
fits <- h_glm_count(
.var = "AVAL",
.df_row = anl,
variables = list(arm = "ARMCD", offset = "lgTMATRSK", covariates = c("REGION1")),
distribution = "poisson"
)
)
testthat::expect_snapshot(fits)
}
)

Expand Down

0 comments on commit ecdef46

Please sign in to comment.