tests/testthat/test_get_estimates_matrix.R

cor_est <- get_estimates(cor(iris[,1:4]))

test_that("get_estimates works for correlations", {
  expect_equal(as.vector(cor_est$estimate),
               as.vector(cor(iris[,1:4])))
  })

Try the BFpack package in your browser

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

BFpack documentation built on Oct. 20, 2023, 5:09 p.m.