get_score | R Documentation |
Returns the score(s) for the provided risk probabilities.
get_score(object, risk)
object |
An object of class "risk_mod", usually a result of a call to
|
risk |
Numeric vector with probability value(s). |
Numeric vector with the same length as risk
.
y <- breastcancer[[1]]
X <- as.matrix(breastcancer[,2:ncol(breastcancer)])
mod <- risk_mod(X, y)
get_score(mod, risk = c(0.25, 0.50, 0.75))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.