tests/testthat/test-covar.R

skip_on_cran()
test_that("Subbofit Matrix of Covariance:", {
  # Generate tests for the covariance matrices
  data_test <- generate_datasets(.5)
  fit <- subbofit(data_test$x)
  covar_mt <- subbo_covar_r(fit, 10^6)
  colnames(covar_mt) <- c("b", "a", "m")
  expect_equal(fit$matrix, covar_mt)
})

Try the Rsubbotools package in your browser

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

Rsubbotools documentation built on April 16, 2025, 5:10 p.m.