tests/testthat/test-BinaryToCensoring.R

context("Test BinaryToCensoring") 

test_that("BinaryToCensoring works", {
  expect_equal(BinaryToCensoring(is.censored = c(0, 1, 1, 0, NA)), BinaryToCensoring(is.uncensored=c(1, 0, 0, 1, NA)))
}
)

Try the ltmle package in your browser

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

ltmle documentation built on April 15, 2023, 5:06 p.m.