Quantile.blrm: Function Generator for Quantiles of Y for 'blrm()'

Description Usage Arguments Value Author(s)

Description

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 a quantile of Y using the posterior mean of all the intercepts. lptau must be provided when call the created function if the model is a partial proportional odds model.

Usage

1
2
## S3 method for class 'blrm'
Quantile(object, codes = FALSE, posterior.summary = c("mean", "median"), ...)

Arguments

object

a blrm() fit

codes

if TRUE, use the integer codes 1,2,…,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

Author(s)

Frank Harrell


rmsb documentation built on Feb. 28, 2021, 1:06 a.m.