The function uses predict if not specified contrast in order to attain the estimate, upper, and lower confidence interval
prPhEstimate(model, term.label, ylog, cntrst, xlim, alpha, new_data)
data.frame
with the columns xvalues, fit, ucl, lcl
The fit of the model to be plotted
The name of the label
If the outcome should be presented in the anti-log form, i.e.
exp()
.
A boolean that indicates if the contrast()
function is to be deployed for rms generated functions. The nice
thing is that you get the median as a reference by default.
The xlim if provided
If not provided the function looks for the most common values i.e. median for continuous and mode for factors.