tests/testthat/test_mslrt_test.R

library(cvequality)

context("mslr_test")
set.seed(1)

  test_that("mslr_test", {
    expect_equal(mslr_test(nr = 1e4, mtcars$disp, mtcars$am),
    list(MSLRT = 2.046478,
         p_value = 0.1525588),
    tolerance = .002)
  })

Try the cvequality package in your browser

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

cvequality documentation built on May 2, 2019, 8:29 a.m.