Learn R Programming

rms (version 6.0-0)

ExProb.blrm: ExProb.blrm

Description

Function Generator for Exceedance Probabilities for blrm

Usage

# S3 method for blrm
ExProb(object, codes = FALSE, posterior.summary = c("mean", "median"), ...)

Arguments

object

a blrm fit

codes

if TRUE, use the integer codes \(1,2,\ldots,k\) for the \(k\)-level response in computing the quantile

posterior.summary

defaults to posterior mean; may also specify "median". Must be consistent with the summary used when creating lp.

...

ignored

Value

an R function

Details

For a blrm object generates a function for computing the estimates of the function Prob(Y>=y) given one or more values of thelinear predictor using the reference (median) intercept. This function can optionally be evaluated at only a set of user-specified y values, otherwise a right-step function is returned. There is a plot method for plotting the step functions, and if more than one linear predictor was evaluated multiple step functions are drawn. ExProb is especially useful for nomogram. The linear predictor argument is a posterior summarized linear predictor lp (e.g. using posterior mean of intercepts and slopes) computed at the reference intercept