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 rstan::extract(), e.g. permuted and inc_warmup.

Value

See rstan::extract() for details.

Examples


f <- read_stantva_fit("fit.rds")
extract(f, "C_Intercept")


[Package RStanTVA version 0.3.0 Index]