tests/testthat/test_COX.R

cov_names=names(example.dat)[1:2]
library(survival)
z=tc(type="COX", dataset=example.dat, cov_names = cov_names, min_exp_events = 10, min_future_events = 50)

test_that("COX", {
  expect_equal_to_reference(object=z[[1]], tolerance=.00001, scale=1, file="test_COX.rds")
})

Try the tccox package in your browser

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

tccox documentation built on Dec. 3, 2017, 5:04 p.m.