powered by
Plots the linear regression equation associated with the integer risk score model. Plots the scores on the x-axis and risk on the y-axis.
# S3 method for risk_mod plot(x, score_min = NULL, score_max = NULL, ...)
Object of class "ggplot".
An object of class "risk_mod", usually a result of a call to risk_mod().
risk_mod()
The minimum score displayed on the x-axis. The default is the minimum score predicted from model's training data.
The maximum score displayed on the x-axis. The default is the maximum score predicted from model's training data.
Additional arguments affecting the plot produced
y <- breastcancer[[1]] X <- as.matrix(breastcancer[,2:ncol(breastcancer)]) mod <- risk_mod(X, y, lambda0 = 0.01) plot(mod)
Run the code above in your browser using DataLab