milestone | R Documentation |
Milestone test for two survival curves
milestone(data, ms_time, test_type = c("log-log", "naive"))
data |
Data frame containing at least 3 columns:
|
ms_time |
Milestone analysis time. |
test_type |
Method to build the test statistics. There are 2 options:
|
A list frame containing:
method
- The method, always "milestone"
.
parameter
- Milestone time point.
estimate
- Survival difference between the experimental and control arm.
se
- Standard error of the control and experimental arm.
z
- Test statistics.
Klein, J. P., Logan, B., Harhoff, M., & Andersen, P. K. (2007). "Analyzing survival curves at a fixed point in time." Statistics in Medicine, 26(24), 4505–4519.
cut_data <- sim_pw_surv(n = 200) |>
cut_data_by_event(150)
cut_data |>
milestone(10, test_type = "log-log")
cut_data |>
milestone(10, test_type = "naive")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.