tests/testthat/test-BF_for_everyone.R

test_that("BF_for_everyone works", {

  # Create data
  cars2 <- cars
  cars2[["parts"]] <- rep(1:10, each = 5)

  # Run analysis
  res <- BF_for_everyone(.df = cars2, .participant = "parts",
                           formula = "dist ~ speed", hypothesis = "speed > 0")

  expect_equal(length(res), 6)
})

Try the mmibain package in your browser

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

mmibain documentation built on May 29, 2024, 4:32 a.m.