tests/testthat/test-pval.R

library(vortexR)
context("test pval")

test_that("test pval", {
    z <- c(1.645, 1.96, 3.09)
    p <- round(pval(z), 3)
    expect_equal(p , c(0.050, 0.025, 0.001))

})

Try the vortexR package in your browser

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

vortexR documentation built on April 14, 2020, 7:23 p.m.