tests/testthat/test-aov.R

test_that("get_statistic", {
  skip_if(getRversion() < "4.5.0")
  data(penguins)
  fit <- aov(
    formula = body_mass ~ species,
    data = penguins
  )
  out <- get_statistic(fit)
  expect_equal(out$Statistic, 343.62628, tolerance = 1e-4)
})

Try the insight package in your browser

Any scripts or data that you put into this service are public.

insight documentation built on Aug. 19, 2025, 1:12 a.m.