tests/testthat/test-roxytest-testexamples-ezgrp.R

# Generated by roxytest: Do not edit by hand!

context("File R/ezgrp.R: @testexamples")

test_that("Function ezcox_group() @ L22", {
  
  library(survival)
  ezcox_group(lung, grp_var = "sex", covariate = "ph.ecog")
  ezcox_group(lung, grp_var = "sex", covariate = "ph.ecog", controls = "age")
  p <- ezcox_group(lung,
    grp_var = "sex", covariate = "ph.ecog",
    controls = "age", add_all = TRUE
  )
  expect_is(p, "list")
})

Try the ezcox package in your browser

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

ezcox documentation built on May 31, 2023, 7:49 p.m.