Learn R Programming

bayesforecast (version 1.0.1)

as.stan: Convert to a stanfit object.

Description

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

Usage

as.stan(object)

Arguments

object

a varstan object.

Value

a stanfit object.

Examples

Run this code
# NOT RUN {
 # 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)
# }

Run the code above in your browser using DataLab