tests/testthat/test-MUVR2.R

# data("freelive2")
# data("mosquito")
test_that("MUVR2 works", {

  nRep <- 2 # Number of MUVR2 repetitions
  nOuter <- 3 # Number of outer cross-validation segments
  varRatio <- 0.75 # Proportion of variables kept per iteration
  method <- 'RF' # Selected core modeling algorithm


  ## An error will occur if you use different number of observations for X and Y
  expect_error(MUVR2(X = XRVIP2,
                     Y = Yotu,
                     nRep = nRep,
                     nOuter = nOuter,
                     method = method))




})

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.