tests/testthat/test-sigma-estimation.R

test_that("alpha estimation works", {
  set.seed(808)

  xy <- SLOPE:::randomProblem(n = 1000, p = 10)

  expect_silent(SLOPE(xy$x, xy$y, alpha = "estimate", path_length = 1))

  # large p
  xy <- SLOPE:::randomProblem(n = 100, p = 250)

  expect_silent(SLOPE(xy$x, xy$y, alpha = "estimate", path_length = 1))
})

Try the SLOPE package in your browser

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

SLOPE documentation built on June 10, 2022, 1:05 a.m.