Extended model formulas in R
open sourceGPL-2.0-only OR GPL-3.0-onlyfree
Formula is an R package that extends R's model formulas to have several parts on the right-hand side and several responses on the left-hand side, such as y ~ x1 | x2. It builds model frames and model matrices from each part separately, so a model function can take more than one set of regressors in one formula. It's described in Zeileis and Croissant's paper in the Journal of Statistical Software (2010).
Problems it solves
- write an R model function that takes two separate sets of regressors in one formula
- handle a formula with several response variables in my R package
- build a separate model matrix for each part of a formula in R
Features
- formulas with multiple right-hand-side parts and multiple responses
- model.frame, model.matrix and model.response for each part
Alternatives
The same job
These do what Formula does.
- car (Companion to Applied Regression) R functions accompanying Fox and Weisberg's An R Companion to Applied Regression
