Skip to content

Commit

Permalink
fix tests for forthcoming fixest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Nov 24, 2023
1 parent 49fe314 commit 927b74b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: insight
Title: Easy Access to Model Information for Various Model Objects
Version: 0.19.6.8
Version: 0.19.6.9
Authors@R:
c(person(given = "Daniel",
family = "Lüdecke",
Expand Down Expand Up @@ -113,7 +113,7 @@ Suggests:
epiR,
estimatr,
feisr,
fixest,
fixest (>= 0.11.2),
fungible,
gam,
gamlss,
Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/test-fixest.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
skip_on_os("mac")
skip_if(getRversion() < "3.6.0")
skip_if_not_installed("fixest")
skip_if_not_installed("fixest", minimum_version = "0.11.2")
skip_if_not_installed("carData")
skip_if_not_installed("withr")

Expand Down Expand Up @@ -275,13 +275,13 @@ test_that("find_statistic", {
test_that("get_statistic", {
stat <- get_statistic(m1)
out <- as.data.frame(summary(m1)$coeftable)
expect_equal(stat$Statistic, out[, "t value"], tolerance = 1e-3, ignore_attr = TRUE)
expect_equal(stat$Statistic, out[, "z value"], tolerance = 1e-3, ignore_attr = TRUE)
stat <- get_statistic(m2)
out <- as.data.frame(summary(m2)$coeftable)
expect_equal(stat$Statistic, out[, "t value"], tolerance = 1e-3, ignore_attr = TRUE)
expect_equal(stat$Statistic, out[, "z value"], tolerance = 1e-3, ignore_attr = TRUE)
stat <- get_statistic(m3)
out <- as.data.frame(summary(m3)$coeftable)
expect_equal(stat$Statistic, out[, "t value"], tolerance = 1e-3, ignore_attr = TRUE)
expect_equal(stat$Statistic, out[, "z value"], tolerance = 1e-3, ignore_attr = TRUE)
})

test_that("get_predicted", {
Expand Down

0 comments on commit 927b74b

Please sign in to comment.