| Maintainer: | Achim Zeileis, Grant McDermott, Kevin Tappe |
| Contact: | Achim.Zeileis at R-project.org |
| Version: | 2025-10-28 |
| URL: | https://CRAN.R-project.org/view=Econometrics |
| Source: | https://github.com/cran-task-views/Econometrics/ |
| Contributions: | Suggestions and improvements for this task view are very welcome and can be made through issues or pull requests on GitHub or via e-mail to the maintainer address. For further details see theContributing guide. |
| Citation: | Achim Zeileis, Grant McDermott, Kevin Tappe (2025). CRAN Task View: Econometrics. Version 2025-10-28. URL https://CRAN.R-project.org/view=Econometrics. |
| Installation: | The packages from this task view can be installed automatically using thectv package. For example,ctv::install.views("Econometrics", coreOnly = TRUE) installs all the core packages orctv::update.views("Econometrics") installs all packages that are not yet installed and up-to-date. See theCRAN Task View Initiative for more details. |
Base R ships with a lot of functionality useful for (computational) econometrics, in particular in the stats package. This functionality is complemented by many packages on CRAN, a brief overview is given below. There is also a certain overlap between the tools for econometrics in this view and those in the task views onFinance,TimeSeries, andCausalInference.
The packages in this view can be roughly structured into the following topics. If you think that some package is missing from the list, please file an issue in the GitHub repository or contact the maintainer.
lm() (from stats) and standard tests for model comparisons are available in various methods such assummary() andanova().summary() andanova() methods that also support asymptotic tests (z instead oft tests, and Chi-squared instead ofF tests) and plug-in of other covariance matrices arecoeftest() andwaldtest() inlmtest. (Non)linear hypothesis testing for a wide range of R packages can implemented through thedeltamethod() function ofmarginaleffects. This expands on older (non)linear hypothesis test functions likelinearHypothesis() anddeltaMethod() fromcar.glm() from package stats. This includes in particular logit and probit models for modeling choice data and Poisson models for count data.glm() withfamily = binomial. Bias-reduced GLMs that are robust to complete and quasi-complete separation are provided bybrglm. Discrete choice models estimated by simulated maximum likelihood are implemented inRchoice.bife provides binary choice models with fixed effects. Heteroscedastic probit models (and other heteroscedastic GLMs) are implemented inglmx along with parametric link functions and goodness-of-link tests for GLMs.glm() withfamily = poisson as explained above. Negative binomial GLMs are available viaglm.nb() in packageMASS. Another implementation of negative binomial models is provided byaod, which also contains other models for overdispersed data. Zero-inflated and hurdle count models are provided in packagepscl. A reimplementation by the same authors is currently under development incountreg on R-Forge which also encompasses separate functions for zero-truncated regression, finite mixture models etc.multinom() from packagennet. An implementation with both individual- and choice-specific variables ismlogit. Generalized multinomial logit models (e.g., with random effects etc.) are ingmnl. A flexible framework of various customizable choice models (including multinomial logit and nested logit among many others) is implemented in theapollo package. The newerlogitr package combines many of the features from these preceding packages and also offers some meaningful performance improvements for fast estimation of multinomial and mixed logit models. Simulated maximum likelihood estimation of mixed logit models, especially for large data sets, is available inmixl. Generalized additive models (GAMs) for multinomial responses can be fitted with theVGAM package. A Bayesian approach to multinomial probit models is provided byMNP. Various Bayesian multinomial models (including logit and probit) are available inbayesm. The packageRSGHB fits various hierarchical Bayesian specifications based on direct specification of the likelihood function. Furthermore, theRprobitB package implements latent class mixed multinomial probit models for approximations of the true underlying mixing distribution.polr() from packageMASS. The packageordinal provides cumulative link models for ordered data which encompasses proportional odds models but also includes more general specifications. Bayesian ordered probit models are provided bybayesm andRprobitB.survreg() insurvival, a convenience interfacetobit() is in packageAER. Further censored regression models, including models for panel data, are provided incensReg. Censored regression models with conditional heteroscedasticity are incrch. Furthermore, hurdle models for left-censored data at zero can be estimated withmhurdle. Models for sample selection are available insampleSelection andssmrob using classical and robust inference, respectively. PackagematchingMarkets corrects for selection bias when the sample is the result of a stable matching process (e.g., a group formation or college admissions problem).coxph() or Weibull models withsurvreg(). Many more refined models can be found in theSurvival task view.We review packages related to some common research designs for causal inference below. This section is necessarily brief and should be paired with theCausalInference task view, since is there a high degree of overlap.
lm() orglm(), etc. Similarly, the equivalent two-way fixed effects (TWFE) design can be obtained using factors to control for unit and time fixed effects. However, for high-dimensional datasets TWFE is more conveniently estimated using a dedicated panel data package likefixest orplm. The former even provides a conveniencei() operator for constructing and interacting factors in TWFE settings.sunab() function), andgsynth.tsls() in packagesem.lm() orglm()) and only correct the standard errors. Different types of clustered, panel, and panel-corrected standard errors are available insandwich (incorporating prior work frommultiwayvcov),clusterSEs,pcse,clubSandwich,plm, andgeepack, respectively. The latter two require estimation of the pooling/independence models viaplm() andgeeglm() from the respective packages (which also provide other types of models, see below).nls() in package stats."ts" in package stats is R’s standard class for regularly spaced time series (especially annual, quarterly, and monthly data). It can be coerced back and forth without loss of information to"zooreg" from packagezoo."zoo") where the time information can be of arbitrary class. This includes daily series (typically with"Date" time index) or intra-day series (e.g., with"POSIXct" time index). An extension based onzoo geared towards time series with different kinds of time index isxts. Further packages aimed particularly at finance applications are discussed in theFinance task view.ar() and ARIMA modeling and Box-Jenkins-type analysis can be carried out witharima() (both in the stats package). An enhanced version ofarima() is inforecast.lm() for estimating OLS and 2SLS models based on time series data isdynlm. Linear regression models with AR error terms via GLS is possible usinggls() fromnlme.StructTS() in stats. Further packages are discussed in theTimeSeries task view.decompose() andHoltWinters() in stats. The basic function for computing filters (both rolling and autoregressive) isfilter() in stats. Many extensions to these methods, in particular for forecasting and model selection, are provided in theforecast package.ar() in stats, more elaborate models are provided in packagevars along with suitable diagnostics, visualizations etc. Structural smooth transition vector autoregressive models are available insstvars. Panel vector autoregressions are implemented inpanelvar and inpvars.tsbootstrap() fromtseries. ThevcovBS() andvcovJK() functions insandwich provide object-oriented implementations of (clustered) bootstrap and jackknife covariance matrices that work for various model objects. Thefwildclusterboot package provides a fast wild cluster bootstrap implementation for linear regression models, especially when the number of clusters is low.