tests/testthat/test-samplesize.R

context("sample size")
library(breakaway)
data("apples")

est <- breakaway(apples)
test_that("sample size estimate works", {
  expect_null(sample_size_estimate(est$estimate, est$error, prop = 0.1))
})

test_that("sample size plot works", {
  expect_null(sample_size_figure(est$estimate, est$error))
})

Try the breakaway package in your browser

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

breakaway documentation built on Nov. 22, 2022, 5:08 p.m.