Learn R Programming

simtrial (version 1.0.0)

multitest: Perform multiple tests on trial data cutting

Description

WARNING: This experimental function is a work-in-progress. The function arguments and/or returned output format may change as we add additional features.

Usage

multitest(data, ...)

Value

A list of test results, one per test. If the test functions are named in the call to multitest(), the returned list uses the same names.

Arguments

data

Trial data cut by cut_data_by_event() or cut_data_by_date()

...

One or more test functions. Use create_test() to change the default arguments of each test function.

See Also

create_test()

Examples

Run this code
trial_data <- sim_pw_surv(n = 200)
trial_data_cut <- cut_data_by_event(trial_data, 150)

# create cutting test functions
wlr_partial <- create_test(wlr, weight = fh(rho = 0, gamma = 0))
rmst_partial <- create_test(rmst, tau = 20)
maxcombo_partial <- create_test(maxcombo, rho = c(0, 0), gamma = c(0, 0.5))

multitest(
  data = trial_data_cut,
  wlr = wlr_partial,
  rmst = rmst_partial,
  maxcombo = maxcombo_partial
)

Run the code above in your browser using DataLab