RSGHB: Functions for Hierarchical Bayesian Estimation: A Flexible Approach

Share:

Functions for estimating models using a Hierarchical Bayesian (HB) framework. The flexibility comes in allowing the user to specify the likelihood function directly instead of assuming predetermined model structures. Types of models that can be estimated with this code include the family of discrete choice models (Multinomial Logit, Mixed Logit, Nested Logit, Error Components Logit and Latent Class) as well ordered response models like ordered probit and ordered logit. In addition, the package allows for flexibility in specifying parameters as either fixed (non-varying across individuals) or random with continuous distributions. Parameter distributions supported include normal, positive/negative log-normal, positive/negative censored normal, and the Johnson SB distribution. Kenneth Train's Matlab and Gauss code for doing Hierarchical Bayesian estimation has served as the basis for a few of the functions included in this package. These Matlab/Gauss functions have been rewritten to be optimized within R. Considerable code has been added to increase the flexibility and usability of the code base. Train's original Gauss and Matlab code can be found here: http://elsa.berkeley.edu/Software/abstracts/train1006mxlhb.html See Train's chapter on HB in Discrete Choice with Simulation here: http://elsa.berkeley.edu/books/choice2.html; and his paper on using HB with non-normal distributions here: http://eml.berkeley.edu//~train/trainsonnier.pdf.

Author
Jeff Dumont [aut, cre], Jeff Keller [aut], Chase Carpenter [ctb]
Date of publication
2015-12-16 23:23:46
Maintainer
Jeff Dumont <Jeff.Dumont@rsginc.com>
License
GPL-3
Version
1.1.2
URLs

View on CRAN

Man pages

choicedata
A synthetic discrete choice dataset
doHB
Estimate a Hierarchical Bayesian Model
plot
Plot RSGHB Model Object Components
writeModel
Write an RSGHB Model Object as Series of CSVs

Files in this package

RSGHB
RSGHB/inst
RSGHB/inst/doc
RSGHB/inst/doc/RSGHB_HowTo.pdf
RSGHB/inst/doc/RSGHB_HowTo.R
RSGHB/inst/doc/RSGHB_HowTo.rnw
RSGHB/src
RSGHB/src/RSGHB.c
RSGHB/NAMESPACE
RSGHB/NEWS
RSGHB/data
RSGHB/data/choicedata.txt.gz
RSGHB/R
RSGHB/R/plotC.R
RSGHB/R/hb.R
RSGHB/R/onLoad.R
RSGHB/R/nextA.R
RSGHB/R/prepareModel.R
RSGHB/R/methods.R
RSGHB/R/writeModel.R
RSGHB/R/doHB.R
RSGHB/R/nextD.R
RSGHB/R/nextF.R
RSGHB/R/checkModel.R
RSGHB/R/progreport.R
RSGHB/R/trans.R
RSGHB/R/nextB.R
RSGHB/R/nextDind.R
RSGHB/vignettes
RSGHB/vignettes/MNL_markovChains.png
RSGHB/vignettes/RSGHB_HowTo-concordance.tex
RSGHB/vignettes/MMNL_MarkovChains.png
RSGHB/vignettes/RSGHB_HowTo.rnw
RSGHB/MD5
RSGHB/build
RSGHB/build/vignette.rds
RSGHB/DESCRIPTION
RSGHB/man
RSGHB/man/writeModel.Rd
RSGHB/man/doHB.Rd
RSGHB/man/choicedata.Rd
RSGHB/man/plot.Rd
RSGHB/tools
RSGHB/tools/Distribution_Converter.R