as.stan | R Documentation |
Convert a varstan
object to a stanfit
object of the
rstan package.
as.stan(object)
object |
a varstan object. |
a stanfit object.
Asael Alonzo Matamoros
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.