footBayes: Fitting Bayesian and MLE football models in R
Leonardo Egidi, Roberto Macrì Demartino, and Vasilis Palaskas
R Package
Description
This is the first R package allowing for the estimation, visualization and prediction of the most well-known football models: double Poisson, bivariate Poisson, Skellam, student-t, diagonal-inflated bivariate Poisson, and zero-inflated Skellam. The package allows Hamiltonian Monte Carlo (HMC) estimation through the underlying Stan environment and Maximum Likelihood estimation (MLE, for ‘static’ models only).
Installation
- You can install the released version of
footBayes
from CRAN with:
install.packages("footBayes", dependencies = TRUE)
- Alternatively, you can install the development version from GitHub with
# install.packages("devtools")
::install_github("leoegidi/footBayes") devtools