Learn R Programming

Greg (version 2.0.2)

prPhEstimate: Gets the non-linear function's estimate

Description

The function uses predict if not specified contrast in order to attain the estimate, upper, and lower confidence interval

Usage

prPhEstimate(model, term.label, ylog, cntrst, xlim, alpha, new_data)

Value

data.frame with the columns xvalues, fit, ucl, lcl

Arguments

model

The fit of the model to be plotted

term.label

The name of the label

ylog

If the outcome should be presented in the anti-log form, i.e. exp().

cntrst

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.

xlim

The xlim if provided

new_data

If not provided the function looks for the most common values i.e. median for continuous and mode for factors.