tests/testthat/test-ML_CoxModel.R

test_that("model fitting", {
  skip_if_not(TEST_MODEL_FITTING)
  with_parallel({
    models <- c("CoxModel", "CoxStepAICModel")
    for (model in models) {
      expect_error(test_model_binary(model))
      expect_error(test_model_factor(model))
      expect_error(test_model_numeric(model))
      expect_error(test_model_ordered(model))
      expect_output(test_model_Surv(model))
    }
  })
})
brian-j-smith/MachineShop documentation built on Sept. 22, 2023, 10:01 p.m.