tests/testthat/test-tpexp.R

test_that("test-tpexp", {
  x <- rtpexp(10)
  expect_equal(dtpexp(x,theta=0,beta=1), dtpexp(x))
  expect_equal(ptpexp(x,theta=0,beta=1), ptpexp(x))
})

Try the twopexp package in your browser

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

twopexp documentation built on July 9, 2023, 7:41 p.m.