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