View source: R/kmplotting_helpers.R
| check_km_curve | R Documentation |
Checks that a Kaplan-Meier curve is valid (values in [0,1], non-increasing).
check_km_curve(S.KM, group_name = "Group", stop_on_error = TRUE)
S.KM |
Numeric vector of survival probabilities. |
group_name |
Character; name of the group. |
stop_on_error |
Logical; whether to stop on error (default TRUE). |
None. Stops or warns if invalid.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.