Linear panel data models in R: The PLM package

November 10, 2007

(This article was first published on Dataninja » R, and kindly contributed to R-bloggers)

The plm package for R lets you run a number of common panel data models, including

  • The fixed effects (or within) estimator
  • The random effects GLS estimator

It also allows for general GLS estimation, as well as GMM estimation, and includes a feature for heteroscedasticity consistent covariance estimation.

It’s very easy to use, it simply requires that you use a special type of dataframe that specifies which variable is the individual and which variable is the cluster/group (this is done using the pdata.frame) command. Once this is done, you can estimate models using the plm command and its options.

See the documentation (PDF) for more.

To leave a comment for the author, please follow the link and comment on their blog: Dataninja » R. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...


Comments are closed.


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)