# Formula

> Extended model formulas in R

Source: https://talira.ai/catalog/formula-ccj2gx92
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / math / statistics](https://talira.ai/categories/libraries/math/statistics), [languages / r](https://talira.ai/categories/languages/r)
- Licence: GPL-2.0-only OR GPL-3.0-only[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Achim Zeileis](https://talira.ai/orgs/achim-zeileis.md)

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).

## Links

- Website: https://zeileis.codeberg.page/Formula/
- Codeberg: https://codeberg.org/zeileis/Formula
- Docs: https://zeileis.codeberg.page/Formula/

## 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

## Trust

Overall: 0.27 out of 1.
Signals: backing 0.30, extensibility 0.00.

- backed by Achim Zeileis

Warnings:

- activity not tracked: Talira doesn't read Codeberg repositories yet

## Alternatives

- [car (Companion to Applied Regression)](https://talira.ai/catalog/car-companion-to-applied-regression-w4mv4413.md): R functions accompanying Fox and Weisberg's An R Companion to Applied Regression

## Sources

[^1]: https://zeileis.codeberg.page/Formula/ (checked 29 Nov 2026)
[^2]: https://crandb.r-pkg.org/Formula (checked 29 Nov 2026)
