Generates posterior predictions for a bayesnechurdlefit

# S3 method for class 'bayesnechurdlefit'
predict(
  object,
  which = "combined",
  resolution = 1000,
  x_range = NA,
  summary = TRUE,
  robust = FALSE,
  probs = c(0.025, 0.975),
  ...
)

Arguments

object

An object of class bayesnechurdlefit.

which

Which curve to return: "combined" (the default), "growth" or "survival".

resolution

The number of unique predictor values to predict over.

x_range

A range of predictor values to predict over.

summary

Should summary statistics be returned instead of the raw values? Default is TRUE.

robust

If FALSE (the default) the mean is used as the measure of central tendency and the standard deviation as the measure of variability. If TRUE, the median and the median absolute deviation are applied instead.

probs

The percentiles to be computed.

...

Passed to each component posterior method, including ndraws and draw_ids.

Value

A matrix.