File: test-parameters_selection.R

package info (click to toggle)
r-cran-parameters 0.24.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,852 kB
  • sloc: sh: 16; makefile: 2
file content (5 lines) | stat: -rw-r--r-- 168 bytes parent folder | download | duplicates (2)
1
2
3
4
5
test_that("select_parameters", {
  model <- lm(mpg ~ ., data = mtcars)
  x <- select_parameters(model)
  expect_equal(n_parameters(model) - n_parameters(x), 7)
})