tests/testthat/test-ftest-output.R

test_that("output from ftest is as expected", {
  model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars)
  expect_snapshot(ols_test_f(model))
  expect_snapshot(ols_test_f(model, rhs = TRUE))
  expect_snapshot(ols_test_f(model, vars = c("disp", "hp")))
})

Try the olsrr package in your browser

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

olsrr documentation built on May 29, 2024, 12:35 p.m.