tests/testthat/test_file.R

test_that("loading sample data", {

  data("long_test")
  data("long_train")
  data("surv_train")
  data("surv_test")

})

test_that("fit model", {

  data("long_train")
  data("surv_train")
  w = funest_fit(long_train, surv_train, tv_names = list("Y1", "Y2", "Y3"), noftree = 10,
               fv_names = list("W"), t_star = 5.5, t_pred = 11)

})

Try the funest package in your browser

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

funest documentation built on March 13, 2020, 5:07 p.m.