Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Functions for Hierarchical Bayesian Estimation: A Flexible Approach
R C
branch: master
Failed to load latest commit information.
2014_ART_Forum_Poster adding ART Forum Projects
Examples Commit that includes all changes made during the summer of 2014 that …
R Updated nextD notation to match Sawtooth documentation.
data Commit that includes all changes made during the summer of 2014 that …
man Corrected documentation of the writeModel argument to doHB
src-i386 Commit that includes all changes made during the summer of 2014 that …
src-x64 Commit that includes all changes made during the summer of 2014 that …
src Corrected missing EOL in C code.
tools There are a number of computational changes in this commit.
vignettes This committ contains the final version of 1.0.2
.Rbuildignore Adding directory structure
.Rhistory This committ contains the final version of 1.0.2
.gitattributes Initial Commit
.gitignore Rewrote the aggregation of the likelihood values to avoid using data.…
DESCRIPTION Commit that includes all changes made during the summer of 2014 that …
License Create License
NAMESPACE Commit that includes all changes made during the summer of 2014 that …
NEWS Commit that includes all changes made during the summer of 2014 that …
RSGHB.Rproj This committ contains the final version of 1.0.2
Readme.md Update Readme.md
unit_tests.r Commit that includes all changes made during the summer of 2014 that …

Readme.md

This package can be used to estimate models using a hierarchical Bayesian 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 log-normal, negative log-normal, positive truncated 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://elsa.berkeley.edu/~train/trainsonnier.pdf

RSGHB and all its example files are covered by the GPL 3 license.

See: https://github.com/jeffdumont/RSGHB/blob/master/License

Something went wrong with that request. Please try again.