tests/testthat/test_check_lm_assumptions.R

# Text to LRM assumptions
test_that("It calculates assumptions correctly", {

  expect_equal(check_lm_assumptions(lm(mpg ~ wt + hp, data = mtcars)), check_lm_assumptions(lm(mpg ~ wt + hp, data = mtcars)))
})

Try the RegAssure package in your browser

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

RegAssure documentation built on Sept. 8, 2023, 5:36 p.m.