Learn R Programming

rms (version 6.0-0)

predict.blrm: predict.blrm

Description

Make predictions from a blrm fit

Usage

# S3 method for blrm
predict(
  object,
  ...,
  type = c("lp", "fitted", "fitted.ind", "mean", "x", "data.frame", "terms", "cterms",
    "ccterms", "adjto", "adjto.data.frame", "model.frame"),
  se.fit = FALSE,
  codes = FALSE,
  posterior.summary = c("mean", "median"),
  cint = 0.95
)

Arguments

object, ..., type, se.fit, codes
posterior.summary

set to 'median' or 'mode' to use posterior median/mode instead of mean

cint

probability for highest posterior density interval

Value

a data frame, matrix, or vector with posterior summaries for the requested quantity, plus an attribute 'draws' that has all the posterior draws for that quantity. For type='fitted' and type='fitted.ind' this attribute is a 3-dimensional array representing draws x observations generating predictions x levels of Y.

Details

Predict method for blrm objects

See Also

predict.lrm

Examples

Run this code
# NOT RUN {
  f <- blrm(...)
  predict(f, newdata, type='...', posterior.summary='median')
# }

Run the code above in your browser using DataLab