tests/testthat/test-predMV.R

test_that("predMV works", {
  ## The number of variables and variable names in the new data must match with the MUVR object
  expect_error(
    predMV(regrModel,
               XRVIP2[,1:100])
               )
  expect_error(
    predMV(classModel,
           XRVIP2)
  )
})

Try the MUVR2 package in your browser

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

MUVR2 documentation built on Sept. 16, 2024, 9:06 a.m.