tests/testthat/test-rowbootmeans.R

test_that("rowBootMeans differs from rowMeans and bootstraps in an expected way", {
  x <- matrix(1:9, 3)
  res <- withr::with_seed(
    seed = 1234,
    rowBootMeans(x))
  expect_equal(res, c(3, 6, 4))
  expect_false(all(res == rowMeans(x)))
})

Try the brmsmargins package in your browser

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

brmsmargins documentation built on May 20, 2022, 1:07 a.m.