Nothing
Code
validate_numeric_truth_numeric_estimate("1", 1)
Condition
Error:
! `truth` should be a numeric, not a `character`.
Code
validate_numeric_truth_numeric_estimate(1, "1")
Condition
Error:
! `estimate` should be a numeric, not a `character`.
Code
validate_numeric_truth_numeric_estimate(matrix(1), 1)
Condition
Error:
! `truth` should be a numeric vector, not a numeric matrix.
Code
validate_numeric_truth_numeric_estimate(1, matrix(1))
Condition
Error:
! `estimate` should be a numeric vector, not a numeric matrix.
Code
validate_numeric_truth_numeric_estimate(1:4, 1:5)
Condition
Error:
! Length of `truth` (4) and `estimate` (5) must match.
Code
validate_binary_estimator(factor(c("a", "b", "a"), levels = c("a", "b", "c")),
estimator = "binary")
Condition
Error:
! `estimator` is binary, only two class `truth` factors are allowed. A factor with 3 levels was provided.
Code
validate_factor_truth_factor_estimate("1", 1)
Condition
Error:
! `truth` should be a factor, not a `character`.
Code
validate_factor_truth_factor_estimate(c("a", "b", "a"), factor(c("a", "a", "a"),
levels = c("a", "b")))
Condition
Error:
! `truth` should be a factor, not a `character`.
Code
validate_factor_truth_factor_estimate(factor(c("a", "a", "a"), levels = c("a",
"b")), c("a", "b", "a"))
Condition
Error:
! `estimate` should be a factor, not a `character`.
Code
validate_factor_truth_factor_estimate(factor(c("a", "a", "a"), levels = c("a",
"b")), 1:3)
Condition
Error:
! `estimate` should be a factor, not a `integer`.
Code
validate_factor_truth_factor_estimate(factor(c("a", "b", "a"), levels = c("a",
"b")), factor(c("a", "a", "a"), levels = c("a", "b", "c")))
Condition
Error:
! `truth` and `estimate` levels must be equivalent.
`truth`: a, b
`estimate`: a, b, c
Code
validate_factor_truth_factor_estimate(factor(c("a", "b", "a"), levels = c("a",
"b")), factor(c("a", "a", "a", "a"), levels = c("a", "b")))
Condition
Error:
! Length of `truth` (3) and `estimate` (4) must match.
Code
validate_factor_truth_matrix_estimate(c("a", "b", "a"), 1:3, estimator = "binary")
Condition
Error:
! `truth` should be a factor, not a `character`.
Code
validate_factor_truth_matrix_estimate(factor(c("a", "b", "a"), levels = c("a",
"b")), c("a", "b", "a"), estimator = "binary")
Condition
Error:
! `estimate` should be a numeric vector, not a `character` vector.
Code
validate_factor_truth_matrix_estimate(factor(character(), levels = c("a", "b")),
matrix(1:6, ncol = 2), estimator = "binary")
Condition
Error:
! You are using a binary metric but have passed multiple columns to `...`.
Code
validate_factor_truth_matrix_estimate(factor(c("a", "b", "a"), levels = c("a",
"b", "c")), 1:3, estimator = "binary")
Condition
Error:
! `estimator` is binary, only two class `truth` factors are allowed. A factor with 3 levels was provided.
Code
validate_factor_truth_matrix_estimate(c("a", "b", "a"), matrix(1:6, ncol = 2),
estimator = "non binary")
Condition
Error:
! `truth` should be a factor, not a `character`.
Code
validate_factor_truth_matrix_estimate(factor(c("a", "b", "a"), levels = c("a",
"b")), 1:3, estimator = "non binary")
Condition
Error:
! The number of levels in `truth` (2) must match the number of columns supplied in `...` (1).
Code
validate_factor_truth_matrix_estimate(factor(c("a", "b", "a"), levels = c("a",
"b")), matrix(as.character(1:6), ncol = 2), estimator = "non binary")
Condition
Error:
! The columns supplied in `...` should be numerics, not `character`s.
Code
validate_factor_truth_matrix_estimate(factor(c("a", "b", "a"), levels = c("a",
"b")), matrix(1:15, ncol = 5), estimator = "non binary")
Condition
Error:
! The number of levels in `truth` (2) must match the number of columns supplied in `...` (5).
Code
validate_surv_truth_numeric_estimate("1", 1)
Condition
Error:
! `truth` should be a Surv object, not a `character`.
Code
validate_surv_truth_numeric_estimate(lung_surv$surv_obj, as.character(lung_surv$
.pred_time))
Condition
Error:
! `estimate` should be a numeric, not a `character`.
Code
validate_surv_truth_numeric_estimate(lung_surv$surv_obj[1:5, ], lung_surv$
.pred_time)
Condition
Error:
! Length of `truth` (5) and `estimate` (228) must match.
Code
validate_surv_truth_list_estimate("1", 1)
Condition
Error:
! `truth` should be a Surv object, not a `character`.
Code
validate_surv_truth_list_estimate(lung_surv$surv_obj, lung_surv$list)
Condition
Error:
! All elements of `estimate` should be data.frames.
Code
validate_surv_truth_list_estimate(lung_surv$surv_obj, lung_surv$list2)
Condition
Error:
! All data.frames of `estimate` should include column names: `.eval_time`, `.pred_survival`, and `.weight_censored`.
Code
validate_surv_truth_list_estimate(lung_surv$surv_obj, lung_surv$list4)
Condition
Error:
! All data.frames of `estimate` should include column names: `.eval_time`, `.pred_survival`, and `.weight_censored`.
Code
validate_surv_truth_list_estimate(lung_surv$surv_obj, as.character(lung_surv$
.pred_time))
Condition
Error:
! `estimate` should be a list, not a `character`.
Code
validate_surv_truth_list_estimate(lung_surv$surv_obj[1:5, ], lung_surv$
.pred_time)
Condition
Error:
! `estimate` should be a list, not a `numeric`.
Code
validate_case_weights(1:10, 11)
Condition
Error:
! `case_weights` (10) must have the same length as `truth` (11).
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.