context("Test hrcompet estimation and data return")
test_that("Wheter return gives desired data dimensions", {
set.seed(1)
data <- CRhazdx::dat_ckid
dat_final<-CRHaz_dx(data, exit, event, exposure=b1nb0, entry, eoi=2)
expect_equal(nrow(dat_final), 187)
expect_equal(ncol(dat_final), 9)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.