Skip to content

Commit

Permalink
Increase tol
Browse files Browse the repository at this point in the history
  • Loading branch information
athowes committed Nov 19, 2024
1 parent 89e4b09 commit e4b607c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/testthat/test-int-latent_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,16 @@ test_that("epidist.epidist_latent_model recovers a sex effect", { # nolint: line
skip_on_cran()
set.seed(1)
draws <- posterior::as_draws_df(fit_sex$fit)
expect_equal(mean(draws$b_Intercept), meanlog_m, tolerance = 0.1)
expect_equal(mean(draws$b_Intercept), meanlog_m, tolerance = 0.2)
expect_equal(
mean(draws$b_Intercept + draws$b_sex), meanlog_f,
tolerance = 0.1
tolerance = 0.2
)
expect_equal(mean(exp(draws$b_sigma_Intercept)), sdlog_m, tolerance = 0.1)
expect_equal(mean(exp(draws$b_sigma_Intercept)), sdlog_m, tolerance = 0.2)
expect_equal(
mean(exp(draws$b_sigma_Intercept + draws$b_sigma_sex)),
sdlog_f,
tolerance = 0.1
tolerance = 0.2
)
expect_s3_class(fit_sex, "brmsfit")
expect_s3_class(fit_sex, "epidist_fit")
Expand Down

0 comments on commit e4b607c

Please sign in to comment.