Learn R Programming

qbrms (version 1.0.1)

generate_prior_predictions_simple: Generate Prior Predictions (Simple)

Description

Generate predictions from a prior-emphasised model fit.

Usage

generate_prior_predictions_simple(
  model,
  data,
  formula,
  family_name,
  ndraws,
  n_cats = NULL
)

Value

List with yrep matrix and observed y.

Arguments

model

INLA model object.

data

Original data.

formula

Original formula.

family_name

Model family name (string).

ndraws

Number of draws.

n_cats

The number of categories for an ordinal response.