Extract Stan code from a fitted brms model.
Usage
# S3 method for class 'brmsfit'
stancode(
object,
version = TRUE,
regenerate = NULL,
threads = NULL,
backend = NULL,
...
)Arguments
- object
An object of class
brmsfit.- version
Logical; indicates if the first line containing the brms version number should be included. Defaults to
TRUE.- regenerate
Logical; indicates if the Stan code should be regenerated with the current brms version. By default,
regeneratewill beFALSEunless required to beTRUEby other arguments.- threads
Controls whether the Stan code should be threaded. See
threadingfor details.- backend
Controls the Stan backend. See
brmfor details.- ...
Further arguments passed to
stancodeif the Stan code is regenerated.