tests/testthat/test-mccr.R

require(testthat)
context("Test mccr")

test_that("calc MCC value",{
  set.seed(18)
  act <- abs(round(rnorm(100))) %% 2
  pred <- abs(round(rnorm(100))) %% 2
  score <- mccr(act, pred)
  score <- round(score, 1)
  expect_equal(0, 0)
})

Try the mccr package in your browser

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

mccr documentation built on May 2, 2019, 5:07 a.m.