tests/testthat/test-qDTGIW.R

test_that("The quantile function of DTGIW", {
  x <- c(0:10)
  p<- pDTGIW(x,3.45,0.7,1.05,0)
  expect_equal(qDTGIW(p,3.45,0.7,1.05,0),qDTGIW(p,3.45,0.7,1.05,0,lower.tail = TRUE,log.p = FALSE))
})

Try the dtgiw package in your browser

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

dtgiw documentation built on March 31, 2022, 9:05 a.m.