prPhEstimate: Gets the non-linear function's estimate

View source: R/private_plotHR.R

prPhEstimateR Documentation

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)

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.

Value

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


gforge/Greg documentation built on Feb. 3, 2024, 5:37 a.m.