tests/testthat/test-reg_sine.R

test_that("check to see reg_sine outputs correctly", {
  set.seed(43421)
  test_data <- data_gen_sine(4, weight_mat = matrix(rep(c(1, 1, 0), 4),
                                                    nrow = 3, ncol = 4),
                             resp_sd = 0)
  test_obj <- reg_sine(Y ~ ., test_data)
  expect_equal(class(test_obj), "reg_sine")
  expect_equal(length(test_obj$par), 13)
})

# Check for y_hat

Try the stressor package in your browser

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

stressor documentation built on May 29, 2024, 3:09 a.m.