Skip to content

Commit

Permalink
Merge pull request #2 from jakub-jedrusiak/dev
Browse files Browse the repository at this point in the history
Correct test for glmmTMB 1.1.8
  • Loading branch information
jakub-jedrusiak committed Oct 27, 2023
2 parents 872bb3f + a7992d7 commit 14b7b6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ estimates.
``` r
mtscr_model(mtscr_creativity, id, item, SemDis_MEAN, top = 1:3) |>
mtscr_model_summary()
#> # A tibble: 3 × 9
#> model nobs sigma logLik AIC BIC df.residual emp_rel FDI
#> <chr> <int> <dbl> <dbl> <dbl> <dbl> <int> <dbl> <dbl>
#> 1 top1 4585 0.736 -5298. 10657. 10850. 4555 0.877 0.936
#> 2 top2 4585 0.767 -5472. 11003. 11196. 4555 0.892 0.944
#> 3 top3 4585 0.825 -5777. 11613. 11806. 4555 0.896 0.947
#> # A tibble: 3 × 10
#> model nobs sigma logLik AIC BIC deviance df.residual emp_rel FDI
#> <chr> <int> <dbl> <dbl> <dbl> <dbl> <dbl> <int> <dbl> <dbl>
#> 1 top1 4585 0.736 -5298. 10657. 10850. 2383. 4555 0.877 0.936
#> 2 top2 4585 0.767 -5472. 11003. 11196. 2597. 4555 0.892 0.944
#> 3 top3 4585 0.825 -5777. 11613. 11806. 3024. 4555 0.896 0.947
```

### Graphical User Interface
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-mtscr_model_summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ test_that("model is summarised", {
summary <- mtscr_model(mtscr_creativity, id, item, SemDis_MEAN, top = 1:3) |>
mtscr_model_summary()

expect_equal(dim(summary), c(3, 9))
expect_equal(dim(summary), c(3, 10))
})

# Test that model must be a glmmTMB object or a list of glmmTMB objects
Expand Down

0 comments on commit 14b7b6d

Please sign in to comment.