This is the development repository of the R
package stochvol
. You find the same information as a pkgdown
website here.
The package provides methods to estimate the stochastic volatility model, potentially with conditionally heavy tails and/or with leverage. Using functions svsample
, svtsample
, svlsample
, and svtlsample
, one can conduct Bayesian inference on all parameters, including the time-varying volatilities (the states in the state space). The same functionality is reachable using the formula interface of svlm
.
Additional features:
R
(predict
, plot
, and residuals
)help("specify_priors", package="stochvol")
designmatrix
bayesplot
functions through the as.array()
specializationhelp("svsample_roll", package="stochvol")
R
’s cross-platform parallelization; look for function arguments n_chains
, parallel
, n_cpus
, and cl
(for “cluster”)R
; see help("svsample_fast_cpp", package="stochvol")
C++
interface; see e.g. help("update_fast_sv", package="stochvol")
sv_constant
as the prior specificationType into your R
session:
install.packages("stochvol")
For more information, please visit the CRAN page of the package.
Type into your R
session:
if (!require("remotes")) {
install.packages("remotes")
}
remotes::install_github(
repo = "https://github.com/gregorkastner/stochvol")
The best introduction is the combination of our vignettes:
For individual functions, please refer to the help pages after installing the package. For instance, for svsample
, execute
help("svsample", package = "stochvol")
For more information, please visit stochvol’s CRAN page.