View source: R/jsdmstanfit-class.R
extract.jsdmStanFit | R Documentation |
This function extracts named parameters from a jsdmStanFit object, with optional regular expression matching.
## S3 method for class 'jsdmStanFit'
extract(
object,
pars = NULL,
permuted = FALSE,
inc_warmup = FALSE,
include = TRUE,
regexp = FALSE,
return_array = FALSE,
...
)
extract(object, ...)
object |
The jsdmStanFit model object |
pars |
A character vector of parameter names |
permuted |
Whether the draws should be randomly permuted, by default
|
inc_warmup |
Whether the warmup period should be included, by default
|
include |
Whether the parameters specified by |
regexp |
Whether regular expression matching should be used to match the
contents of |
return_array |
Whether to return the output as a 3 dimensional array
( |
... |
Arguments passed to |
If return_array = FALSE
returns a named list with each parameter
group being an element of the list. Each list element is an array with the first
dimension being the iteration (all chains are appended) and the other dimensions
coming from the parameter dimensions. If return_array = TRUE
then a 3
dimensional array is returned with the first dimension being the iterations, the
second the chains and the third the parameters.
extract()
: Generic method
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.