maxcombo {simtrial} | R Documentation |
MaxCombo test
Description
WARNING: This experimental function is a work-in-progress. The function arguments will change as we add additional features.
Usage
maxcombo(
data = cut_data_by_event(sim_pw_surv(n = 200), 150),
rho = c(0, 0, 1),
gamma = c(0, 1, 1),
return_variance = FALSE,
return_corr = FALSE
)
Arguments
data |
A TTE dataset. |
rho |
Numeric vector. Must be greater
than or equal to zero. Must be the same length as |
gamma |
Numeric vector. Must be
greater than or equal to zero. Must be the same length as |
return_variance |
A logical flag that, if |
return_corr |
A logical flag that, if |
Value
A list containing the test method (method
),
parameters of this test method (parameter
),
point estimation of the treatment effect (estimation
),
standardized error of the treatment effect (se
),
Z-score of each test of the MaxCombo (z
),
p-values (p_value
)
and the correlation matrix of each tests in MaxCombo (begin with v
)
See Also
Examples
sim_pw_surv(n = 200) |>
cut_data_by_event(150) |>
maxcombo(rho = c(0, 0), gamma = c(0, 1), return_corr = TRUE)