Package: plm 2.6-9999

Kevin Tappe

plm: Linear Models for Panel Data

A set of estimators for models and (robust) covariance matrices, and tests for panel data econometrics, including within/fixed effects, random effects, between, first-difference, nested random effects as well as instrumental-variable (IV) and Hausman-Taylor-style models, panel generalized method of moments (GMM) and general FGLS models, mean groups (MG), demeaned MG, and common correlated effects (CCEMG) and pooled (CCEP) estimators with common factors, variable coefficients and limited dependent variables models. Test functions include model specification, serial correlation, cross-sectional dependence, panel unit root and panel Granger (non-)causality. Typical references are general econometrics text books such as Baltagi (2021), Econometric Analysis of Panel Data (<doi:10.1007/978-3-030-53953-5>), Hsiao (2014), Analysis of Panel Data (<doi:10.1017/CBO9781139839327>), and Croissant and Millo (2018), Panel Data Econometrics with R (<doi:10.1002/9781119504641>).

Authors:Yves Croissant [aut], Giovanni Millo [aut], Kevin Tappe [aut, cre], Ott Toomet [ctb], Christian Kleiber [ctb], Achim Zeileis [ctb], Arne Henningsen [ctb], Liviu Andronic [ctb], Nina Schoenfelder [ctb]

plm_2.6-9999.tar.gz
plm_2.6-9999.zip(r-4.5)plm_2.6-9999.zip(r-4.4)plm_2.6-9999.zip(r-4.3)
plm_2.6-9999.tgz(r-4.4-any)plm_2.6-9999.tgz(r-4.3-any)
plm_2.6-9999.tar.gz(r-4.5-noble)plm_2.6-9999.tar.gz(r-4.4-noble)
plm_2.6-9999.tgz(r-4.4-emscripten)plm_2.6-9999.tgz(r-4.3-emscripten)
plm.pdf |plm.html
plm/json (API)
NEWS

# Install 'plm' in R:
install.packages('plm', repos = c('https://ycroissant.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/ycroissant/plm/issues

Datasets:
  • Cigar - Cigarette Consumption
  • Crime - Crime in North Carolina
  • EmplUK - Employment and Wages in the United Kingdom
  • Gasoline - Gasoline Consumption
  • Grunfeld - Grunfeld's Investment Data
  • Hedonic - Hedonic Prices of Census Tracts in the Boston Area
  • LaborSupply - Wages and Hours Worked
  • Males - Wages and Education of Young Males
  • Parity - Purchasing Power Parity and other parity relationships
  • Produc - US States Production
  • RiceFarms - Production of Rice in Indonesia
  • Snmesp - Employment and Wages in Spain
  • SumHes - The Penn World Table, v. 5
  • Wages - Panel Data of Individual Wages

On CRAN:

14.10 score 52 stars 38 packages 4.6k scripts 39k downloads 31 mentions 68 exports 16 dependencies

Last updated 4 months agofrom:7736eea876. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 03 2024
R-4.5-winOKNov 03 2024
R-4.5-linuxOKNov 03 2024
R-4.4-winOKNov 03 2024
R-4.4-macOKNov 03 2024
R-4.3-winOKNov 03 2024
R-4.3-macOKNov 03 2024

Exports:aneweytestbetweenBetweencipstestcortabdetect.lindepdynformulaercompfixefhas.interceptindexis.pbalancedis.pconsecutiveis.pserieslagleadmake.dummiesmake.pbalancedmake.pconsecutivemaxLikmtestnobspbgtestpbltestpbnftestpbsytestpccepcdtestpdata.framepdimpdwtestpFtestpgglspgmmpgrangertestphansitestphtphtestpiestpldvplmplm.dataplmtestpmgpmodel.responsepooltestpseriesfypunbalancednesspurtestpvarpvcmpvcovHCpwaldtestpwartestpwfdtestpwtestr.squaredranefsarganSumvcovBKvcovDCvcovGvcovHCvcovNWvcovSCCWithinwithin_intercept

Dependencies:bdsmatrixcollapsedigestFormulagenericslatticelmtestMASSmaxLikmiscToolsnlmerbibutilsRcppRdpacksandwichzoo

Estimation of error components models with the plm function

Rendered fromB_plmFunction.Rmdusingknitr::rmarkdownon Nov 03 2024.

Last update: 2022-09-13
Started: 2021-02-15

Model components for fitted models with plm

Rendered fromC_plmModelComponents.Rmdusingknitr::rmarkdownon Nov 03 2024.

Last update: 2021-12-10
Started: 2021-02-15

Panel data econometrics in R:

Rendered fromA_plmPackage.Rmdusingknitr::rmarkdownon Nov 03 2024.

Last update: 2023-07-16
Started: 2021-02-15

Readme and manuals

Help Manual

Help pageTopics
plm package: linear models for panel dataplm-package
Angrist and Newey's version of Chamberlain test for fixed effectsaneweytest
Cigarette ConsumptionCigar
Cross-sectionally Augmented IPS Test for Unit Roots in Panel Modelscipstest
Cross-sectional correlation matrixcortab
Crime in North CarolinaCrime
Functions to detect linear dependencealias.pdata.frame alias.plm detect.lindep detect.lindep.data.frame detect.lindep.matrix detect.lindep.plm
Employment and Wages in the United KingdomEmplUK
Estimation of the error componentsercomp ercomp.formula ercomp.pdata.frame ercomp.plm print.ercomp
Extract the Fixed Effectsfixef fixef.pggls fixef.plm print.fixef print.summary.fixef summary.fixef
Gasoline ConsumptionGasoline
Grunfeld's Investment DataGrunfeld
Check for the presence of an intercept in a formula or in a fitted modelhas.intercept has.intercept.default has.intercept.Formula has.intercept.formula has.intercept.panelmodel has.intercept.plm
Hedonic Prices of Census Tracts in the Boston AreaHedonic
Extract the indexes of panel dataindex index.panelmodel index.pdata.frame index.pindex index.plm index.pseries
Check if data are balancedis.pbalanced is.pbalanced.data.frame is.pbalanced.default is.pbalanced.panelmodel is.pbalanced.pcce is.pbalanced.pdata.frame is.pbalanced.pggls is.pbalanced.pgmm is.pbalanced.pmg is.pbalanced.pseries
Check if time periods are consecutiveis.pconsecutive is.pconsecutive.data.frame is.pconsecutive.default is.pconsecutive.panelmodel is.pconsecutive.pdata.frame is.pconsecutive.pseries
Check if an object is a pseriesis.pseries
Wages and Hours WorkedLaborSupply
lag, lead, and diff for panel datadiff diff.pseries lag lag.plm lag.pseries lead lead.pseries
Create a Dummy Matrixmake.dummies make.dummies.data.frame make.dummies.default make.dummies.pdata.frame
Make data balancedmake.pbalanced make.pbalanced.data.frame make.pbalanced.pdata.frame make.pbalanced.pseries
Make data consecutive (and, optionally, also balanced)make.pconsecutive make.pconsecutive.data.frame make.pconsecutive.pdata.frame make.pconsecutive.pseries
Wages and Education of Young MalesMales
model.frame and model.matrix for panel dataformula.pdata.frame model.frame.pdata.frame model.matrix.pdata.frame model.matrix.plm
Arellano-Bond Test of Serial Correlationmtest mtest.pgmm
Extract Total Number of Observations Used in Estimated Panelmodelnobs nobs.panelmodel nobs.pgmm nobs.plm
Purchasing Power Parity and other parity relationshipsParity
Breusch-Godfrey Test for Panel Modelspbgtest pbgtest.formula pbgtest.panelmodel
Baltagi and Li Serial Dependence Test For Random Effects Modelspbltest pbltest.formula pbltest.plm
Modified BNF-Durbin-Watson Test and Baltagi-Wu's LBI Test for Panel Modelspbnftest pbnftest.formula pbnftest.panelmodel
Bera, Sosa-Escudero and Yoon Locally-Robust Lagrange Multiplier Tests for Panel Models and Joint Test by Baltagi and Lipbsytest pbsytest.formula pbsytest.panelmodel
Common Correlated Effects estimatorsmodel.matrix.pcce pcce pmodel.response.pcce print.summary.pcce residuals.pcce summary.pcce
Tests of cross-section dependence for panel modelspcdtest pcdtest.formula pcdtest.panelmodel pcdtest.pseries
pdata.frame: a data.frame for panel data$.pdata.frame $<-.pdata.frame as.data.frame.pdata.frame as.list.pdata.frame pdata.frame print.pdata.frame [.pdata.frame [[.pdata.frame
Check for the Dimensions of the Panelpdim pdim.data.frame pdim.default pdim.panelmodel pdim.pcce pdim.pdata.frame pdim.pggls pdim.pgmm pdim.pmg pdim.pseries print.pdim
Durbin-Watson Test for Panel Modelspdwtest pdwtest.formula pdwtest.panelmodel
F Test for Individual and/or Time EffectspFtest pFtest.formula pFtest.plm
General FGLS Estimatorspggls print.summary.pggls residuals.pggls summary.pggls
Generalized Method of Moments (GMM) Estimation for Panel Datacoef.pgmm pgmm print.summary.pgmm summary.pgmm
Panel Granger (Non-)Causality Test (Dumitrescu/Hurlin (2012))pgrangertest
Simes Test for unit roots in panel dataphansitest print.phansitest
Hausman-Taylor Estimator for Panel Datapht print.summary.pht summary.pht
Hausman Test for Panel Modelsphtest phtest.formula phtest.panelmodel
Chamberlain estimator and test for fixed effectspiest print.piest print.summary.piest summary.piest
Panel estimators for limited dependent variablespldv
Panel Data Estimatorscoef.panelmodel deviance.panelmodel df.residual.panelmodel fitted.panelmodel fitted.plm formula.plm plm plot.plm print.panelmodel print.plm.list residuals.panelmodel residuals.plm terms.panelmodel update.panelmodel vcov.panelmodel
Deprecated functions of plmdetect_lin_dep dynformula formula.dynformula plm-deprecated plm.data print.dynformula pvcovHC
Option to Switch On/Off Fast Data Transformationsplm.fast
Lagrange FF Multiplier Tests for Panel Modelsplmtest plmtest.formula plmtest.plm
Mean Groups (MG), Demeaned MG and CCE MG estimatorspmg print.summary.pmg residuals.pmg summary.pmg
A function to extract the model.responsepmodel.response pmodel.response.data.frame pmodel.response.formula pmodel.response.plm
Test of Poolabilitypooltest pooltest.formula pooltest.plm
Model Prediction for plm Objectspredict.plm
US States ProductionProduc
panel seriesas.matrix.pseries Between between Between.default between.default Between.matrix between.matrix Between.pseries between.pseries plot.pseries plot.summary.pseries print.pseries print.summary.pseries pseries Sum Sum.default Sum.matrix Sum.pseries summary.pseries Within Within.default Within.matrix Within.pseries
Turn all columns of a pdata.frame into class pseries.pseriesfy
Measures for Unbalancedness of Panel Datapunbalancedness punbalancedness.data.frame punbalancedness.panelmodel punbalancedness.pdata.frame
Unit root tests for panel dataprint.purtest print.summary.purtest purtest summary.purtest
Check for Cross-Sectional and Time Variationprint.pvar pvar pvar.data.frame pvar.matrix pvar.pdata.frame pvar.pseries
Variable Coefficients Models for Panel Dataprint.summary.pvcm pvcm summary.pvcm
Wald-style Chi-square Test and F Testpwaldtest pwaldtest.pgmm pwaldtest.plm pwaldtest.pvcm
Wooldridge Test for AR(1) Errors in FE Panel Modelspwartest pwartest.formula pwartest.panelmodel
Wooldridge first-difference-based test for AR(1) errors in levels or first-differenced panel modelspwfdtest pwfdtest.formula pwfdtest.panelmodel
Wooldridge's Test for Unobserved Effects in Panel Modelspwtest pwtest.formula pwtest.panelmodel
R squared and adjusted R squared for panel modelsr.squared
Extract the Random Effectsranef ranef.plm
Production of Rice in IndonesiaRiceFarms
Hansen-Sargan Test of Overidentifying Restrictionssargan
Employment and Wages in SpainSnmesp
The Penn World Table, v. 5SumHes
Summary for plm objectscoef.summary.plm.list print.summary.plm print.summary.plm.list summary.plm summary.plm.list
Beck and Katz Robust Covariance Matrix EstimatorsvcovBK vcovBK.plm
Double-Clustering Robust Covariance Matrix EstimatorvcovDC vcovDC.plm
Generic Lego building block for Robust Covariance Matrix EstimatorsvcovG vcovG.pcce vcovG.plm
Robust Covariance Matrix EstimatorsvcovHC vcovHC.pcce vcovHC.pgmm vcovHC.plm
Newey and West (1987) Robust Covariance Matrix EstimatorvcovNW vcovNW.pcce vcovNW.plm
Driscoll and Kraay (1998) Robust Covariance Matrix EstimatorvcovSCC vcovSCC.pcce vcovSCC.plm
Panel Data of Individual WagesWages
Overall Intercept for Within Models Along its Standard Errorwithin_intercept within_intercept.plm