results_predictions: Produce predictions from a frequentist or Bayesian object.

View source: R/results.r

results_predictionsR Documentation

Produce predictions from a frequentist or Bayesian object.

Description

This function takes the draws result from a model and produces a prediction table with confidence intervals and P-values based on structured predictions.

Usage

results_predictions(
  object,
  pr,
  obj.draws,
  method = c("observed values", "mean"),
  draws = 1000,
  times = NULL,
  m = NULL,
  response = T
)

Arguments

object

The model object.

pr

The structured predictions. A return from 'structure_predictions'.

obj.draws

The draws produced from the model. A return from 'get_draws'.

method

A string indicating how variables not in 'predictions' should be treated. There are two options; "observed values" and "mean."

times

An optional vector identifying the times to produce coefficients for. Only relevant for survival models.

m

The model to get results for. Only relevated for a multivariate Bayesian model (a model with multiple dependent variables).

Value

The predictions table.

See Also

Other internal functions: get_coef(), get_data(), get_draws(), get_formula(), get_link(), get_vcov(), results_coefficients(), results_contrasts(), structure_predictions()


jacobaro/danalyze documentation built on Oct. 20, 2022, 8:09 a.m.