extract,stantvafit-method {RStanTVA} | R Documentation |
Extract samples from a fitted RStanTVA model
Description
Returns posterior samples from a fitted RStanTVA model.
Usage
## S4 method for signature 'stantvafit'
extract(object, pars, ...)
Arguments
object |
The RStanTVA fit. |
pars |
(Optional) A character vector of variable names to extract. |
... |
Additional arguments passed to |
Value
See rstan::extract()
for details.
Examples
f <- read_stantva_fit("fit.rds")
extract(f, "C_Intercept")
[Package RStanTVA version 0.3.0 Index]