IDEAS home Printed from https://ideas.repec.org/a/jss/jstsof/v074i10.html
   My bibliography  Save this article

Discrete Choice Models with Random Parameters in R: The Rchoice Package

Author

Listed:
  • Sarrias, Mauricio

Abstract

Rchoice is a package in R for estimating models with individual heterogeneity for both cross-sectional and panel (longitudinal) data. In particular, the package allows binary, ordinal and count response, as well as continuous and discrete covariates. Individual heterogeneity is modeled by allowing the parameter associated with each observed variable (e.g., its coefficient) to vary randomly across individuals according to some pre-specified distribution. Simulated maximum likelihood method is implemented for the estimation of the moments of the distributions. In addition, functions for plotting the conditional individual-specific coefficients and their confidence interval are provided. This article is a general description of Rchoice and all functionalities are illustrated using real databases.

Suggested Citation

  • Sarrias, Mauricio, 2016. "Discrete Choice Models with Random Parameters in R: The Rchoice Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 74(i10).
  • Handle: RePEc:jss:jstsof:v:074:i10
    DOI: http://hdl.handle.net/10.18637/jss.v074.i10
    as

    Download full text from publisher

    File URL: https://www.jstatsoft.org/index.php/jss/article/view/v074i10/v74i10.pdf
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v074i10/Rchoice_0.3-1.tar.gz
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v074i10/v74i10.R
    Download Restriction: no

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v074.i10?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Sándor, Zsolt & Train, Kenneth, 2004. "Quasi-random simulation of discrete choice models," Transportation Research Part B: Methodological, Elsevier, vol. 38(4), pages 313-327, May.
    2. Lee, Lung-Fei, 1992. "On Efficiency of Methods of Simulated Moments and Maximum Simulated Likelihood Estimation of Discrete Response Models," Econometric Theory, Cambridge University Press, vol. 8(4), pages 518-552, December.
    3. Krapf, Matthias & Ursprung, Heinrich W. & Zimmermann, Christian, 2017. "Parenthood and productivity of highly skilled labor: Evidence from the groves of academe," Journal of Economic Behavior & Organization, Elsevier, vol. 140(C), pages 147-175.
    4. Greene, William, 2007. "Functional Form and Heterogeneity in Models for Count Data," Foundations and Trends(R) in Econometrics, now publishers, vol. 1(2), pages 113-218, August.
    5. Falco, Paolo & Maloney, William F. & Rijkers, Bob & Sarrias, Mauricio, 2015. "Heterogeneity in subjective wellbeing: An application to occupational allocation in Africa," Journal of Economic Behavior & Organization, Elsevier, vol. 111(C), pages 137-153.
    6. William H Greene & Mark N Harris & Christopher Spencer, 2013. "Estimating the Standard Errors of Individual-Specific Parameters in Random Parameters Models," Bankwest Curtin Economics Centre Working Paper series WP1309, Bankwest Curtin Economics Centre (BCEC), Curtin Business School.
    7. Jackson, Christopher, 2011. "Multi-State Models for Panel Data: The msm Package for R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 38(i08).
    8. Hajivassiliou, Vassilis A. & Ruud, Paul A., 1986. "Classical estimation methods for LDV models using simulation," Handbook of Econometrics, in: R. F. Engle & D. McFadden (ed.), Handbook of Econometrics, edition 1, volume 4, chapter 40, pages 2383-2441, Elsevier.
    9. William H. Greene & David A. Hensher, 2010. "Ordered Choices and Heterogeneity in Attribute Processing," Journal of Transport Economics and Policy, University of Bath, vol. 44(3), pages 331-364, September.
    10. Grün, Bettina & Leisch, Friedrich, 2008. "FlexMix Version 2: Finite Mixtures with Concomitant Variables and Varying and Constant Parameters," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 28(i04).
    11. Kenneth Train ., 2000. "Halton Sequences for Mixed Logit," Economics Working Papers E00-278, University of California at Berkeley.
    12. Train,Kenneth E., 2009. "Discrete Choice Methods with Simulation," Cambridge Books, Cambridge University Press, number 9780521747387.
    13. David Hensher & William Greene, 2003. "The Mixed Logit model: The state of practice," Transportation, Springer, vol. 30(2), pages 133-176, May.
    14. Gourieroux, Christian & Monfort, Alain & Trognon, Alain, 1984. "Pseudo Maximum Likelihood Methods: Applications to Poisson Models," Econometrica, Econometric Society, vol. 52(3), pages 701-720, May.
    15. Bhat, Chandra R., 2001. "Quasi-random maximum simulated likelihood estimation of the mixed multinomial logit model," Transportation Research Part B: Methodological, Elsevier, vol. 35(7), pages 677-693, August.
    16. Rainer Winkelmann & Stefan Boes, 2006. "Analysis of Microdata," Springer Books, Springer, number 978-3-540-29607-2, September.
    17. Doran, Harold & Bates, Douglas & Bliese, Paul & Dowling, Maritza, 2007. "Estimating the Multilevel Rasch Model: With the lme4 Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 20(i02).
    18. Greene,William H. & Hensher,David A., 2010. "Modeling Ordered Choices," Cambridge Books, Cambridge University Press, number 9780521194204.
    19. Zeileis, Achim, 2006. "Object-oriented Computation of Sandwich Estimators," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 16(i09).
    20. Arne Henningsen & Ott Toomet, 2011. "maxLik: A package for maximum likelihood estimation in R," Computational Statistics, Springer, vol. 26(3), pages 443-458, September.
    21. Liverani, Silvia & Hastie, David I. & Azizi, Lamiae & Papathomas, Michail & Richardson, Sylvia, 2015. "PReMiuM: An R Package for Profile Regression Mixture Models Using Dirichlet Processes," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 64(i07).
    22. Gourieroux, Christian & Monfort, Alain, 1997. "Simulation-based Econometric Methods," OUP Catalogue, Oxford University Press, number 9780198774754.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Liu, Qiang & Homma, Riken & Iki, Kazuhisa, 2020. "Evaluating cyclists’ perception of satisfaction using 360° videos," Transportation Research Part A: Policy and Practice, Elsevier, vol. 132(C), pages 205-213.
    2. Faulques, Martin & Bonnet, Jean & Bourdin, Sébastien & Juge, Marine & Pigeon, Jonas & Richard, Charlotte, 2022. "Generational effect and territorial distributive justice, the two main drivers for willingness to pay for renewable energies," Energy Policy, Elsevier, vol. 168(C).
    3. An, Wookhyun & Alarcón, Silverio, 2021. "Rural tourism preferences in Spain: Best-worst choices," Annals of Tourism Research, Elsevier, vol. 89(C).
    4. David De La Croix & Frédéric Docquier & Alice Fabre & Robert Stelter, 2019. "The Academic Market And The Rise Of Universities In Medieval And Early Modern Europe (1000-1800)," LIDAM Discussion Papers IRES 2019019, Université catholique de Louvain, Institut de Recherches Economiques et Sociales (IRES).
    5. Nguyen, Ly & Gao, Zhifeng & Anderson, James L., 2022. "Regulating menu information: What do consumers care and not care about at casual and fine dining restaurants for seafood consumption?," Food Policy, Elsevier, vol. 110(C).
    6. Sarrias, Mauricio & Daziano, Ricardo, 2017. "Multinomial Logit Models with Continuous and Discrete Individual Heterogeneity in R: The gmnl Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 79(i02).
    7. Mostafa Sharafeldin & Ahmed Farid & Khaled Ksaibati, 2022. "A Random Parameters Approach to Investigate Injury Severity of Two-Vehicle Crashes at Intersections," Sustainability, MDPI, vol. 14(21), pages 1-13, October.
    8. Gallemore, Caleb & Guisinger, Amy & Kruuse, Mikkel & Ruysschaert, Denis & Jespersen, Kristjan, 2018. "Escaping the “Teenage” Years: The Politics of Rigor and the Evolution of Private Environmental Standards," Ecological Economics, Elsevier, vol. 152(C), pages 76-87.
    9. Nguyen, Ly & Gao, Zhifeng & Anderson, James L. & House, Lisa A., 2022. "The Impacts of Covid-19 on Consumers’ Willingness to Pay for Information Transparency at Casual and Fine Dining Restaurants," 2022 Annual Meeting, July 31-August 2, Anaheim, California 322463, Agricultural and Applied Economics Association.
    10. Mostafa Sharafeldin & Ahmed Farid & Khaled Ksaibati, 2022. "Injury Severity Analysis of Rear-End Crashes at Signalized Intersections," Sustainability, MDPI, vol. 14(21), pages 1-14, October.
    11. Wookhyun An & Silverio Alarcón, 2021. "Inferring customer heterogeneity for rural tourism: A latent class approach based on a best-worst choice modelling," Agricultural Economics, Czech Academy of Agricultural Sciences, vol. 67(7), pages 266-276.
    12. Yang, Jingwen & Tang, Zili & Yuan, Qingcui & Xu, Bing, 2021. "The economic and social benefits of the government-backed credit guarantee fund under the condition of an economic downturn," Technological Forecasting and Social Change, Elsevier, vol. 166(C).
    13. Genie, Mesfin G. & Nicoló, Antonio & Pasini, Giacomo, 2020. "The role of heterogeneity of patients’ preferences in kidney transplantation," Journal of Health Economics, Elsevier, vol. 72(C).
    14. Ufer, Danielle J. & Ortega, David L. & Wolf, Christopher A. & McKendree, Melissa & Swanson, Janice, 2022. "Getting past the gatekeeper: Key motivations of dairy farmer intent to adopt animal health and welfare-improving biotechnology," Food Policy, Elsevier, vol. 112(C).
    15. Gabriel Rodríguez-Puello & Ariel Arcos & Benjamin Jara, 2022. "Would you Value a few More Hours of work? Underemployment and Subjective Well-Being Across Chilean Workers," Applied Research in Quality of Life, Springer;International Society for Quality-of-Life Studies, vol. 17(2), pages 885-912, April.
    16. Gustavo Ahumada & Victor Iturra & Mauricio Sarrias, 2020. "We Do Not Have the Same Tastes! Evaluating Individual Heterogeneity in the Preferences for Amenities," Journal of Happiness Studies, Springer, vol. 21(1), pages 53-74, January.
    17. Mauricio Sarrias, 2020. "Random Parameters and Spatial Heterogeneity using Rchoice in R," REGION, European Regional Science Association, vol. 7, pages 1-19.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Falco, Paolo & Maloney, William F. & Rijkers, Bob & Sarrias, Mauricio, 2015. "Heterogeneity in subjective wellbeing: An application to occupational allocation in Africa," Journal of Economic Behavior & Organization, Elsevier, vol. 111(C), pages 137-153.
    2. Mauricio Sarrias, 2020. "Random Parameters and Spatial Heterogeneity using Rchoice in R," REGION, European Regional Science Association, vol. 7, pages 1-19.
    3. Sarrias, Mauricio & Daziano, Ricardo, 2017. "Multinomial Logit Models with Continuous and Discrete Individual Heterogeneity in R: The gmnl Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 79(i02).
    4. Paleti, Rajesh, 2018. "Generalized multinomial probit Model: Accommodating constrained random parameters," Transportation Research Part B: Methodological, Elsevier, vol. 118(C), pages 248-262.
    5. Peter Haan, 2005. "State Dependence and Female Labor Supply in Germany: The Extensive and the Intensive Margin," Discussion Papers of DIW Berlin 538, DIW Berlin, German Institute for Economic Research.
    6. Staus, Alexander, 2008. "Standard and Shuffled Halton Sequences in a Mixed Logit Model," Working Papers 93856, Universitaet Hohenheim, Institute of Agricultural Policy and Agricultural Markets.
    7. Gustavo Ahumada & Victor Iturra & Mauricio Sarrias, 2020. "We Do Not Have the Same Tastes! Evaluating Individual Heterogeneity in the Preferences for Amenities," Journal of Happiness Studies, Springer, vol. 21(1), pages 53-74, January.
    8. Zhu, Dianchen & Sze, N.N. & Feng, Zhongxiang & Chan, Ho-Yin, 2023. "Waiting for signalized crossing or walking to footbridge/underpass? Examining the effect of weather using stated choice experiment with panel mixed random regret minimization approach," Transport Policy, Elsevier, vol. 138(C), pages 144-169.
    9. Xiaodong Gong & Robert Breunig, 2017. "Childcare Assistance: Are Subsidies or Tax Credits Better?," Fiscal Studies, Institute for Fiscal Studies, vol. 38, pages 7-48, March.
    10. Bliemer, Michiel C.J. & Rose, John M., 2010. "Construction of experimental designs for mixed logit models allowing for correlation across choice observations," Transportation Research Part B: Methodological, Elsevier, vol. 44(6), pages 720-734, July.
    11. Bastin, Fabian & Cirillo, Cinzia & Toint, Philippe L., 2006. "Application of an adaptive Monte Carlo algorithm to mixed logit estimation," Transportation Research Part B: Methodological, Elsevier, vol. 40(7), pages 577-593, August.
    12. Marco A. Palma & Dmitry V. Vedenov & David Bessler, 2020. "The order of variables, simulation noise, and accuracy of mixed logit estimates," Empirical Economics, Springer, vol. 58(5), pages 2049-2083, May.
    13. Yu, Jie & Goos, Peter & Vandebroek, Martina, 2010. "Comparing different sampling schemes for approximating the integrals involved in the efficient design of stated choice experiments," Transportation Research Part B: Methodological, Elsevier, vol. 44(10), pages 1268-1289, December.
    14. Czajkowski, Mikołaj & Budziński, Wiktor, 2019. "Simulation error in maximum likelihood estimation of discrete choice models," Journal of choice modelling, Elsevier, vol. 31(C), pages 73-85.
    15. Cherchi, Elisabetta & Guevara, Cristian Angelo, 2012. "A Monte Carlo experiment to analyze the curse of dimensionality in estimating random coefficients models with a full variance–covariance matrix," Transportation Research Part B: Methodological, Elsevier, vol. 46(2), pages 321-332.
    16. Munger, D. & L’Ecuyer, P. & Bastin, F. & Cirillo, C. & Tuffin, B., 2012. "Estimation of the mixed logit likelihood function by randomized quasi-Monte Carlo," Transportation Research Part B: Methodological, Elsevier, vol. 46(2), pages 305-320.
    17. Bijan J. Borah, 2006. "A mixed logit model of health care provider choice: analysis of NSS data for rural India," Health Economics, John Wiley & Sons, Ltd., vol. 15(9), pages 915-932, September.
    18. Juan Carlos Martín & Concepción Román & Cira Mendoza, 2018. "Determinants for sun-and-beach self-catering accommodation selection," Tourism Economics, , vol. 24(3), pages 319-336, May.
    19. Nakamura, Akihiro, 2015. "Mobile and fixed broadband access services substitution in Japan considering new broadband features," Telecommunications Policy, Elsevier, vol. 39(2), pages 140-154.
    20. Ufer, Danielle J. & Ortega, David L. & Wolf, Christopher A. & McKendree, Melissa & Swanson, Janice, 2022. "Getting past the gatekeeper: Key motivations of dairy farmer intent to adopt animal health and welfare-improving biotechnology," Food Policy, Elsevier, vol. 112(C).

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:jss:jstsof:v:074:i10. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F. Baum (email available below). General contact details of provider: http://www.jstatsoft.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.