Learn R Programming

RStanTVA (version 0.3.2)

extract,stantvafit-method: Extract samples from a fitted RStanTVA model

Description

Returns posterior samples from a fitted RStanTVA model.

Usage

# S4 method for stantvafit
extract(object, pars, ...)

Value

See rstan::extract() for details.

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.

Examples

Run this code
if (FALSE) {
f <- read_stantva_fit("fit.rds")
extract(f, "C_Intercept")
}

Run the code above in your browser using DataLab