tests/testthat/test-stepwise-output.R

test_that("output from stepwise regression is as expected", {
  model <- lm(y ~ ., data = surgical)
  expect_snapshot(ols_step_both_p(model))
  expect_snapshot(ols_step_both_p(model, progress = TRUE))
  expect_snapshot(ols_step_both_p(model, details = TRUE))
})

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.