Skip to content
/ bsreg Public

Fit Bayesian models with a focus on spillover effects. Implements linear specifications (with or without shrinkage), allows for spatial lags of the dependent, explanatories, and error term, parameterised connectivity, and stochastic volatility.

License

Notifications You must be signed in to change notification settings

nk027/bsreg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bsreg: Bayesian Spatial Regression Models

CRAN month total

Estimation of Bayesian spatial models.

Installation

bsreg is available on CRAN. The development version can be installed from GitHub.

install.packages("bsreg")
devtools::install_github("nk027/bsreg")

Demonstration

# Load the package
library("bsreg")

# Estimate a Bayesian linear model using cigarette demand data
x <- blm(log(sales) ~ log(price), data = cigarettes, lags = 1)

# Check convergence via trace and density plots
plot(x)

References

Nikolas Kuschnig (2021). Bayesian spatial econometrics and the need for software. Working Paper, DOI: 10.13140/RG.2.2.11269.68328.

About

Fit Bayesian models with a focus on spillover effects. Implements linear specifications (with or without shrinkage), allows for spatial lags of the dependent, explanatories, and error term, parameterised connectivity, and stochastic volatility.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages