brms (version 2.9.0)

standata.brmsfit: Extract Data passed to Stan

Description

Extract all data that was used by Stan to fit the model

Usage

# S3 method for brmsfit
standata(object, newdata = NULL, re_formula = NULL,
  incl_autocor = TRUE, new_objects = list(), internal = FALSE,
  control = list(), ...)

standata(object, ...)

Arguments

object

An object of class brmsfit.

newdata

An optional data.frame for which to evaluate predictions. If NULL (default), the original data of the model is used.

re_formula

formula containing group-level effects to be considered in the prediction. If NULL (default), include all group-level effects; if NA, include no group-level effects.

incl_autocor

A flag indicating if correlation structures originally specified via autocor should be included in the predictions. Defaults to TRUE.

new_objects

A named list of objects containing new data, which cannot be passed via argument newdata. Required for objects passed via stanvars and for cor_sar and cor_fixed correlation structures.

internal

Logical, indicates if the data should be prepared for internal use in other post-processing methods.

control

A named list currently for internal usage only.

...

More arguments passed to make_standata.

Value

A named list containing the data originally passed to Stan.