as.stan: Convert to a stanfit object.

Description Usage Arguments Value Author(s) Examples

View source: R/varstan.R

Description

Convert a varstan object to a stanfit object of the rstan package.

Usage

1
as.stan(object)

Arguments

object

a varstan object.

Value

a stanfit object.

Author(s)

Asael Alonzo Matamoros

Examples

1
2
3
4
5
6
 # Fitting a GARCH(1,1) model
 dat = garch(ipc,order = c(1,1,0))
 fit1 = varstan(dat,iter = 500,chains = 1)

 # Converting to a Stanfit object
 stanfit1 = as.stan(fit1)

bayesforecast documentation built on June 17, 2021, 5:14 p.m.