tests/testthat/test_pval_zscore.R

library(ludic)
context("Z-score p-value")

test_that("-1.96 and 1.96 both have p-value 0.05", {
  expect_equal(round(pval_zscore(1.96, 1), 4), 0.05)
  expect_equal(round(pval_zscore(-1.96, 1), 4), 0.05)
  
})

Try the ludic package in your browser

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

ludic documentation built on Aug. 18, 2021, 5:08 p.m.