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. 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).
    2. 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).
    3. 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.
    4. Cribari-Neto, Francisco & Zeileis, Achim, 2010. "Beta Regression in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 34(i02).
    5. 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).
    6. 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).
    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. Kevin Huynh, 2024. "Weighted-Average Least Squares for Negative Binomial Regression," Papers 2404.11324, arXiv.org.
    3. 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).
    4. Cribari-Neto, Francisco & Zeileis, Achim, 2010. "Beta Regression in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 34(i02).
    5. 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).
    6. 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.
    7. 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.
    8. Viechtbauer, Wolfgang, 2010. "Conducting Meta-Analyses in R with the metafor Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 36(i03).
    9. Andreea Cambir, 2015. "Factors of life quality material dimension," Romanian Statistical Review, Romanian Statistical Review, vol. 63(2), pages 39-56, June.
    10. 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).
    11. 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.
    12. 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.
    13. 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).
    14. 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. Christian Kleiber & Achim Zeileis, 2016. "Visualizing Count Data Regressions Using Rootograms," The American Statistician, Taylor & Francis Journals, vol. 70(3), pages 296-303, July.
    3. repec:jss:jstsof:36:i02 is not listed on IDEAS
    4. 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.
    5. McGinlay, James & Parsons, David J. & Morris, Joe & Hubatova, Marie & Graves, Anil & Bradbury, Richard B. & Bullock, James M., 2017. "Do charismatic species groups generate more cultural ecosystem service benefits?," Ecosystem Services, Elsevier, vol. 27(PA), pages 15-24.
    6. Nordhausen, Klaus & Oja, Hannu, 2011. "Multivariate L1 Statistical Methods: The Package MNM," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 43(i05).
    7. Wen, Li & Rogers, Kerrylee & Saintilan, Neil & Ling, Joanne, 2011. "The influences of climate and hydrology on population dynamics of waterbirds in the lower Murrumbidgee River floodplains in Southeast Australia: Implications for environmental water management," Ecological Modelling, Elsevier, vol. 222(1), pages 154-163.
    8. Millo, Giovanni, 2014. "Robust standard error estimators for panel models: a unifying approach," MPRA Paper 54954, University Library of Munich, Germany.
    9. McGinlay, James & Parsons, David J. & Morris, Joe & Graves, Anil & Hubatova, Marie & Bradbury, Richard B. & Bullock, James M., 2018. "Leisure activities and social factors influence the generation of cultural ecosystem service benefits," Ecosystem Services, Elsevier, vol. 31(PC), pages 468-480.
    10. Fay, Michael P. & Shaw, Pamela A., 2010. "Exact and Asymptotic Weighted Logrank Tests for Interval Censored Data: The interval R Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 36(i02).
    11. 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.
    12. Yixuan Wang & Jianzhu Li & Ping Feng & Rong Hu, 2015. "A Time-Dependent Drought Index for Non-Stationary Precipitation Series," Water Resources Management: An International Journal, Published for the European Water Resources Association (EWRA), Springer;European Water Resources Association (EWRA), vol. 29(15), pages 5631-5647, December.
    13. 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.
    14. Goldrosen, Nicholas, 2024. "Is corrections officers' use of illegal force networked? Network structure, brokerage, and key players in the New York City Department of Correction," Journal of Criminal Justice, Elsevier, vol. 92(C).
    15. 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.
    16. 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.
    17. Panayi, Efstathios & Peters, Gareth W. & Danielsson, Jon & Zigrand, Jean-Pierre, 2018. "Designating market maker behaviour in limit order book markets," Econometrics and Statistics, Elsevier, vol. 5(C), pages 20-44.
    18. 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.
    19. Paulus, Anne & Hagemann, Nina & Baaken, Marieke C. & Roilo, Stephanie & Alarcón-Segura, Viviana & Cord, Anna F. & Beckmann, Michael, 2022. "Landscape context and farm characteristics are key to farmers' adoption of agri-environmental schemes," Land Use Policy, Elsevier, vol. 121(C).
    20. Gauss Cordeiro & Josemar Rodrigues & Mário Castro, 2012. "The exponential COM-Poisson distribution," Statistical Papers, Springer, vol. 53(3), pages 653-664, August.
    21. Totterman, Stephen, 2021. "Vehicle-based recreation and compliance for three beaches in northern New South Wales," OSF Preprints ja8h6, Center for Open Science.
    22. Jong-Hyun Kim & Yong-Gil Lee, 2021. "Factors of Collaboration Affecting the Performance of Alternative Energy Patents in South Korea from 2010 to 2017," Sustainability, MDPI, vol. 13(18), pages 1-25, September.

    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.