How to rescale the "linear predictor" in the drawing nomogram with the "rms" package in R?
I am trying to draw a nomogram from logistic regression in R using rms package, but currently I have a problem: indeed, I can get a nomogram, but the "linear predictor" axis ranges from -2.5 to + 3 and I wanted to know if I can do this from 0 to 1 (i.e. 0% to 100% of the predicted probability for Y = 1). I guess I need to set the "lp.at = ..." argument, but I can't seem to do it myself, so hope someone can help! Thank you very much for your answer.
Leonardo Frazzoni, MD
Università degli Studi di Bologna
source to share
It sounds like you want to completely suppress the scale of the linear predictor. You can do this with nomogram(..., lp=FALSE)
. To add a scale with predicted probabilities, use nomogram(..., fun=plogis, funlabel='Predicted Risk')
. Your question confused the linear predictor with your notion of "final" logistic regression output, predicted risk.
source to share