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, ...)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.