Skip to content

Commit

Permalink
typo in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ericward-noaa committed Jun 11, 2024
1 parent cc8c063 commit a423d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/testfits.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ test_that("fitmodels", {
set.seed(123)
mod <- fit_stan(y, model_name = "ss_ar", est_drift = FALSE, mcmc_list=list(n_chain = 1, n_mcmc=300, n_burn=100, n_thin=1) )
pars <- rstan::extract(mod)
expect_equal(mean(pars$sigma), 0.2503624, tolerance = 0.01)
expect_equal(mean(pars$sigma_obs), 0.2503624, tolerance = 0.01)

set.seed(123)
mod <- fit_stan(y, model_name = "ss_rw", est_drift = TRUE, mcmc_list=list(n_chain = 1, n_mcmc=300, n_burn=100, n_thin=1) )
Expand Down

0 comments on commit a423d23

Please sign in to comment.