Learn R Programming

rms (version 6.0-0)

Mean.blrm: Mean.blrm

Description

Function Generator for Mean Y for blrm

Usage

# S3 method for blrm
Mean(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 predicted mean response.

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

Creates a function to turn a posterior summarized linear predictor lp (e.g. using posterior mean of intercepts and slopes) computed at the reference intercept into e.g. an estimate of mean Y using the posterior mean of all the intercepts