I would like to draw a nomogram for a logistic regression in R. Unfortunately, I do not have the full dataset, but I have the intercept and the coefficients.
I learned that the rms
package allows drawing a nice nomogram (https://rpubs.com/clayford/nomogram); however, for that, I would need an lrm
object.
Could I somehow generate a “blank” lrm
object and adjust it and then draw a nomogram using rms::nomogram()
?
Example data:
# Define the coefficients
coef_intercept <- -12.364
coef_X <- 0.826
coef_Y <- 0.426
coef_Z <- 5.111
X and Y are linear, Z binary.