| survmat | R Documentation |
Internal constructor and validator for survmat, the single prediction
container used by the verb-level predict() method. A survmat is an
n x length(times) numeric matrix carrying its evaluation grid in the
"times" attribute (column names "t=<time>" are kept for display and for
backward compatibility with the *_survmat metric helpers) and the predicted
quantity in the "quantity" attribute.
new_survmat(x, times, quantity = "survival")
validate_survmat(x)
as_survmat(x, times, quantity = "survival")
x |
A numeric matrix (or data frame / vector coercible to one) of
predictions, one row per observation and one column per entry of |
times |
Numeric vector, strictly increasing and non-negative, of length
|
quantity |
One of |
new_survmat() builds the object without checks; validate_survmat() enforces
the contract; as_survmat() is the checked constructor used internally after a
learner's raw predict_*() output has been finalised.
A survmat: a numeric matrix with class c("survmat", "matrix", "array"), attribute "times", and attribute "quantity".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.