Other packages > Find by keyword >

RSGHB  

Functions for Hierarchical Bayesian Estimation: A Flexible Approach
View on CRAN: Click here


Download and install RSGHB package within the R console
Install from CRAN:
install.packages("RSGHB")

Install from Github:
library("remotes")
install_github("cran/RSGHB")

Install by package version:
library("remotes")
install_version("RSGHB", "1.2.2")



Attach the package and use:
library("RSGHB")
Maintained by
Jeff Dumont
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2013-02-14
Latest Update: 2019-07-03
Description:
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: . The authors would also like to thank the invaluable contributions of Stephane Hess and the Choice Modelling Centre: .
How to cite:
Jeff Dumont (2013). RSGHB: Functions for Hierarchical Bayesian Estimation: A Flexible Approach. R package version 1.2.2, https://cran.r-project.org/web/packages/RSGHB. Accessed 28 Aug. 2026.
Previous versions and publish date:
(2026-07-09 08:20), 1.0.1 (2013-04-10 16:16), 1.0.2 (2014-05-30 09:19), 1.0 (2013-02-14 16:22), 1.1.0 (2015-06-09 00:26), 1.1.1 (2015-07-17 00:16), 1.1.2 (2015-12-16 23:23), 1.2.0 (2018-10-17 18:00), 1.2.1 (2019-01-07 01:10), 1.2.2 (2019-07-03 23:20)
Other packages that cited RSGHB R package
View RSGHB citation profile
Other R packages that RSGHB depends, imports, suggests or enhances
Complete documentation for RSGHB
Functions, R codes and Examples using the RSGHB R package
Some associated functions: choicedata . doHB . plot . writeModel . 
Some associated R codes: checkModel.R . doHB.R . hb.R . methods.R . nextA.R . nextB.R . nextD.R . nextDhIW.R . nextDind.R . nextF.R . nextlambda.R . onLoad.R . plotC.R . prepareModel.R . progreport.R . trans.R . writeModel.R .  Full RSGHB package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

nextGenShinyApps  
Craft Exceptional 'R Shiny' Applications and Dashboards with Novel Responsive Tools
Nove responsive tools for designing and developing 'Shiny' dashboards and applications. The scripts ...
Download / Learn more Package Citations See dependency  
survivalMPLdc  
Penalised Likelihood for Survival Analysis with Dependent Censoring
Fitting Cox proportional hazard model under dependent right censoring using copula and maximum penal ...
Download / Learn more Package Citations See dependency  
NPflow  
Bayesian Nonparametrics for Automatic Gating of Flow-Cytometry Data
Dirichlet process mixture of multivariate normal, skew normal or skew t-distributions modeling orie ...
Download / Learn more Package Citations See dependency  
RGIFT  
Create Quizzes in GIFT Format
Implementation of some functions to create quizzes in the GIFT format. This format is used by sever ...
Download / Learn more Package Citations See dependency  
spatialCovariance  
Computation of Spatial Covariance Matrices for Data on Rectangles
Functions that compute the spatial covariance matrix for the matern and power classes of spatial mod ...
Download / Learn more Package Citations See dependency  
mxnorm  
Apply Normalization Methods to Multiplexed Images
Implements methods to normalize multiplexed imaging data, including statistical metrics and visuali ...
Download / Learn more Package Citations See dependency  

28,332

R Packages

239,283

Dependencies

75,113

Author Associations

28,333

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA