RSGHB: Functions for Hierarchical Bayesian Estimation: A Flexible Approach
Version 1.1.2

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: See Train's chapter on HB in Discrete Choice with Simulation here:; and his paper on using HB with non-normal distributions here:

Getting started

Package details

AuthorJeff Dumont [aut, cre], Jeff Keller [aut], Chase Carpenter [ctb]
Date of publication2015-12-16 23:23:46
MaintainerJeff Dumont <[email protected]>
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the RSGHB package in your browser

Any scripts or data that you put into this service are public.

RSGHB documentation built on May 29, 2017, 6:23 p.m.