powered by
Returns the score(s) for the provided risk probabilities.
get_score(object, risk)
Numeric vector with the same length as risk.
risk
An object of class "risk_mod", usually a result of a call to risk_mod().
risk_mod()
Numeric vector with probability value(s).
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))
Run the code above in your browser using DataLab