IDEAS home Printed from https://ideas.repec.org/p/hal/journl/hal-01245303.html
   My bibliography  Save this paper

Extended Model Formulas in R : Multiple Parts and Multiple Responses

Author

Listed:
  • Achim Zeileis

    (Universität Innsbruck [Innsbruck])

  • Yves Croissant

    (UR - Université de La Réunion)

Abstract

Model formulas are the standard approach for specifying the variables in statistical models in the S language. Although being eminently useful in an extremely wide class of applications, they have certain limitations including being confined to single responses and not providing convenient support for processing formulas with multiple parts. The latter is relevant for models with two or more sets of variables, e.g., different equations for different model parameters (such as mean and dispersion), regressors and instruments in instrumental variable regressions, two-part models such as hurdle models, or alternative-specific and individual-specific variables in choice models among many others. The R package Formula addresses these two problems by providing a new class Formula (inheriting from formula) that accepts an additional formula operator | separating multiple parts and by allowing all formula operators (including the new |) on the left-hand side to support multiple responses.

Suggested Citation

  • Achim Zeileis & Yves Croissant, 2010. "Extended Model Formulas in R : Multiple Parts and Multiple Responses," Post-Print hal-01245303, HAL.
  • Handle: RePEc:hal:journl:hal-01245303
    DOI: 10.18637/jss.v034.i01
    Note: View the original document on HAL open archive server: https://hal.univ-reunion.fr/hal-01245303
    as

    Download full text from publisher

    File URL: https://hal.univ-reunion.fr/hal-01245303/document
    Download Restriction: no

    File URL: https://libkey.io/10.18637/jss.v034.i01?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
    ---><---

    Other versions of this item:

    References listed on IDEAS

    as
    1. Zeileis, Achim & Kleiber, Christian & Jackman, Simon, 2008. "Regression Models for Count Data in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 27(i08).
    2. Hothorn, Torsten & Hornik, Kurt & van de Wiel, Mark A. & Zeileis, Achim, 2008. "Implementing a Class of Permutation Tests: The coin Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 28(i08).
    3. Stasinopoulos, D. Mikis & Rigby, Robert A., 2007. "Generalized Additive Models for Location Scale and Shape (GAMLSS) in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 23(i07).
    4. Croissant, Yves & Millo, Giovanni, 2008. "Panel Data Econometrics in R: The plm Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 27(i02).
    5. Croissant, Yves & Millo, Giovanni, 2008. "Panel Data Econometrics in R: The plm Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 27(i02).
    6. Hothorn, Torsten & Hornik, Kurt & van de Wiel, Mark A. & Zeileis, Achim, 2006. "A Lego System for Conditional Inference," The American Statistician, American Statistical Association, vol. 60, pages 257-263, August.
    7. Cribari-Neto, Francisco & Zeileis, Achim, 2010. "Beta Regression in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 34(i02).
    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. repec:jss:jstsof:36:i03 is not listed on IDEAS
    2. Viechtbauer, Wolfgang, 2010. "Conducting Meta-Analyses in R with the metafor Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 36(i03).
    3. Andreea Cambir, 2015. "Factors of life quality material dimension," Romanian Statistical Review, Romanian Statistical Review, vol. 63(2), pages 39-56, June.
    4. 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).
    5. Erni, Birgit & Bonnevie, Bo T. & Oschadleus, Hans-Dieter & Altwegg, Res & Underhill, Les G., 2013. "moult: An R Package to Analyze Moult in Birds," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 52(i08).
    6. Cribari-Neto, Francisco & Zeileis, Achim, 2010. "Beta Regression in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 34(i02).
    7. Grün, Bettina & Kosmidis, Ioannis & Zeileis, Achim, 2012. "Extended Beta Regression in R: Shaken, Stirred, Mixed, and Partitioned," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 48(i11).
    8. Zhang, Peng & Qiu, Zhenguo & Shi, Chengchun, 2016. "simplexreg: an R package for regression analysis of proportional data using the simplex distribution," LSE Research Online Documents on Economics 102115, London School of Economics and Political Science, LSE Library.
    9. Silvia Pisica & Nicoleta Caragea, 2015. "Determinants of Labor Force Potential in Romania," Romanian Statistical Review, Romanian Statistical Review, vol. 63(2), pages 104-118, June.
    10. Andoria Ionita, 2015. "Computational consideration for selection of social classes in Romania," Romanian Statistical Review, Romanian Statistical Review, vol. 63(3), pages 90-100, September.
    11. Felix Thoemmes & Wang Liao & Ze Jin, 2017. "The Analysis of the Regression-Discontinuity Design in R," Journal of Educational and Behavioral Statistics, , vol. 42(3), pages 341-360, June.
    12. Savitsky, Terrance & Paddock, Susan, 2014. "Bayesian Semi- and Non-Parametric Models for Longitudinal Data with Multiple Membership Effects in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 57(i03).
    13. repec:jss:jstsof:34:i02 is not listed on IDEAS

    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. repec:jss:jstsof:34:i01 is not listed on IDEAS
    2. Abbasiharofteh, Milad & Kogler, Dieter F. & Lengyel, Balázs, 2023. "Atypical combinations of technologies in regional co-inventor networks," EconStor Open Access Articles and Book Chapters, ZBW - Leibniz Information Centre for Economics, vol. 52(10), pages 1-1.
    3. Millo, Giovanni, 2014. "Robust standard error estimators for panel models: a unifying approach," MPRA Paper 54954, University Library of Munich, Germany.
    4. Susanne Berger & Nathaniel Graham & Achim Zeileis, 2017. "Various Versatile Variances: An Object-Oriented Implementation of Clustered Covariances in R," Working Papers 2017-12, Faculty of Economics and Statistics, Universität Innsbruck.
    5. Assist. Prof. Dr. Eglantina Hysa & Oltiana Nikolli, M.A., 2014. "Trade Effect On Economic Growth Of Balkan Countries," Revista Tinerilor Economisti (The Young Economists Journal), University of Craiova, Faculty of Economics and Business Administration, vol. 1(23), pages 109-120, November.
    6. Giovanni Millo & Gaetano Carmeci, 2011. "Non-life insurance consumption in Italy: a sub-regional panel data analysis," Journal of Geographical Systems, Springer, vol. 13(3), pages 273-298, September.
    7. Adrian Otoiu & Ramona Bere & Catalin Silvestru, 2017. "An Assessment of the First Round Impact of Innovation Industries on Europe’s Regional Economies," The AMFITEATRU ECONOMIC journal, Academy of Economic Studies - Bucharest, Romania, vol. 19(44), pages 289-289, February.
    8. Kristina Kocisova & Martina Pastyriková, 2020. "Determinants of non-performing loans in European Union countries," Proceedings of Economics and Finance Conferences 10913085, International Institute of Social and Economic Sciences.
    9. Shinsuke Asakawa, 2020. "Can Child Benefits Shape Parents' Attitudes toward Childrearing in Japan?: Effects of Child Benefit Policy Expansions," Discussion Papers in Economics and Business 19-04-Rev.2, Osaka University, Graduate School of Economics.
    10. Christian Kleiber & Achim Zeileis, 2016. "Visualizing Count Data Regressions Using Rootograms," The American Statistician, Taylor & Francis Journals, vol. 70(3), pages 296-303, July.
    11. Kim, Suji & Lee, Sujin & Ko, Eunjeong & Jang, Kitae & Yeo, Jiho, 2021. "Changes in car and bus usage amid the COVID-19 pandemic: Relationship with land use and land price," Journal of Transport Geography, Elsevier, vol. 96(C).
    12. Ferentinos, Konstantinos & Gibberd, Alex & Guin, Benjamin, 2021. "Climate policy and transition risk in the housing market," Bank of England working papers 918, Bank of England.
    13. Wilmer Martínez-Rivera & Thomaz Carvalhaes & Petar Jevtić & T. Agami Reddy, 2023. "A treatment-effect model to quantify human dimensions of disaster impacts: the case of Hurricane Maria in Puerto Rico," Natural Hazards: Journal of the International Society for the Prevention and Mitigation of Natural Hazards, Springer;International Society for the Prevention and Mitigation of Natural Hazards, vol. 116(2), pages 2033-2068, March.
    14. Hötte, Kerstin, 2023. "Demand-pull, technology-push, and the direction of technological change," Research Policy, Elsevier, vol. 52(5).
    15. Cécile Bazart & Mickael Beaud & Dimitri Dubois, 2020. "Whistleblowing vs. Random Audit: An Experimental Test of Relative Efficiency," Kyklos, Wiley Blackwell, vol. 73(1), pages 47-67, February.
    16. Eduardo Correia & Rodrigo Calili & José Francisco Pessanha & Maria Fatima Almeida, 2023. "Definition of Regulatory Targets for Electricity Non-Technical Losses: Proposition of an Automatic Model-Selection Technique for Panel Data Regressions," Energies, MDPI, vol. 16(6), pages 1-22, March.
    17. Vanessa da Silva Mariotto Onody & Ana Catarina Gandra de Carvalho & Eduardo Polloni-Silva & Guilherme Augusto Roiz & Enzo Barberio Mariano & Daisy Aparecida Nascimento Rebelatto & Herick Fernando Mora, 2022. "Corruption and FDI in Brazil: Contesting the “Sand” or “Grease” Hypotheses," Sustainability, MDPI, vol. 14(10), pages 1-18, May.
    18. Ana Beatriz Hernández-Lara & Juan Pablo Gonzales-Bustos & Amado Alarcón-Alarcón, 2021. "Social Sustainability on Corporate Boards: The Effects of Female Family Members on R&D," Sustainability, MDPI, vol. 13(4), pages 1-13, February.
    19. Tsai, Tsung-Han, 2016. "A Bayesian Approach to Dynamic Panel Models with Endogenous Rarely Changing Variables," Political Science Research and Methods, Cambridge University Press, vol. 4(3), pages 595-620, September.
    20. Hannes Weber, 2018. "Higher acceptance rates of asylum seekers lead to slightly more asylum applications in the future," Demographic Research, Max Planck Institute for Demographic Research, Rostock, Germany, vol. 39(47), pages 1291-1304.
    21. Alice Hengevoss, 2021. "Assessing the Impact of Nonprofit Organizations on Multi-Actor Global Governance Initiatives: The Case of the UN Global Compact," Sustainability, MDPI, vol. 13(13), pages 1-13, June.

    More about this item

    Keywords

    R software;

    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:hal:journl:hal-01245303. 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: CCSD (email available below). General contact details of provider: https://hal.archives-ouvertes.fr/ .

    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.