Bayesian Estimation of Multilevel Vector Autoregressive Networks using STAN
The bvarnet package allows user to estimate Bayesian multilevel Vector Auto Regressive (VAR) models for binary, ordinal and continuous outcome variables. Missing data is handled through listwise deletion and a skip-lag mechanism, which skips the estimation of the temporal structure when there is a gap between two timepoints. Further, we provide functionality to conduct hypothesis tests.
Installation
You can install the latest version from CRAN using:
install.packages("bvarnet")Or you can install the development version of bvarnet from GitHub with:
if(!requireNamespace("remotes")) {
install.packages("remotes")
}
remotes::install_github("flo1met/bvarnet")Getting Started
The best place to start learning how to use this package to estimate Bayesian (multilevel) Vector Autoregression is the Getting Started Vignette. This vignette covers the basic model syntax, how to specify priors and how to extract the relevant parameters.
Feature Requests and Contributions
- Predictions
- Cross-sectional Networks
- Correlated Random Effects
- Hierarchical Prior Distributions
- Performance Optimisation
Roadmap
bvarnet is actively being developed. While the core functionality is stable, we have several features planned for future releases. For bug reports or feature request, please visit our Issue Tracker.