R/RMTL_test_function.R

Defines functions RMTL.test

Documented in RMTL.test

# one function for all methods
RMTL.test <- function(
    time = NULL,
    status = NULL,
    group = NULL,
    formula = NULL,
    event = NULL,
    data = NULL,
    hyp_mat,
    hyp_vec = NULL,
    M = NULL,
    tau,
    method = c("permutation", "asymptotic"),
    stepwise = FALSE,
    alpha = 0.05,
    Nres = 4999,
    seed = 1
){
  method <- match.arg(method)
  switch(method,
         permutation = RMTL.permutation.test(time, status, group, formula, event,
                                             data, hyp_mat, hyp_vec, M, tau, stepwise,
                                             alpha, Nres, seed),
         asymptotic  = RMTL.asymptotic.test(time, status, group, formula, event,
                                            data, hyp_mat, hyp_vec, M, tau, stepwise,
                                            alpha, Nres, seed))
}

Try the GFDrmtl package in your browser

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

GFDrmtl documentation built on Oct. 4, 2024, 1:09 a.m.