getData: Get model data

getDataR Documentation

Get model data

Description

Wrapper to get the data that was used to fit a model.

Usage

getData(object, ...)

## Default S3 method:
getData(object, ...)

## S3 method for class 'merMod'
getData(object, ...)

## S3 method for class 'brmsfit'
getData(object, ...)

Arguments

object

a fitted model.

...

additional parameters to be passed on.

Note

The data is retrieved from the environment where the model was fit, which is usually your current environment. If you delete the data from the environment or change it after fitting the model this function will probably not work or get the wrong dataset, respectively.

Author(s)

Florian Hartig

See Also

getObservedResponse, getSimulations, getRefit, getFixedEffects, getFitted


DHARMa documentation built on Nov. 7, 2026, 5:08 p.m.