EconPapers    
Economics at your fingertips  
 

Extended Model Formulas in R: Multiple Parts and Multiple Responses

Achim Zeileis () and Yves Croissant

Journal of Statistical Software, 2010, vol. 034, issue i01

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.

Date: 2010-04-05
References: View references in EconPapers View complete reference list from CitEc
Citations: View citations in EconPapers (13)

Downloads: (external link)
https://www.jstatsoft.org/index.php/jss/article/view/v034i01/v34i01.pdf
https://www.jstatsoft.org/index.php/jss/article/do ... Formula_1.0-0.tar.gz
https://www.jstatsoft.org/index.php/jss/article/do ... ile/v034i01/v34i01.R

Related works:
Working Paper: Extended Model Formulas in R: Multiple Parts and Multiple Responses (2010) Downloads
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:jss:jstsof:v:034:i01

DOI: 10.18637/jss.v034.i01

Access Statistics for this article

Journal of Statistical Software is currently edited by Bettina Grün, Edzer Pebesma and Achim Zeileis

More articles in Journal of Statistical Software from Foundation for Open Access Statistics
Bibliographic data for series maintained by Christopher F. Baum ().

 
Page updated 2025-03-19
Handle: RePEc:jss:jstsof:v:034:i01