Difference between revisions of "Panel in R"

From ECLR
Jump to: navigation, search
Line 5: Line 5:
 
== The plm package ==
 
== The plm package ==
  
To deal efficiently with panel data we will need the <source enclose=none>plm</source> package and you need to downlaod it (<source enclose=none>install.packages("plm")</source>) and load it into the workspace (<source enclose=none>library(plm)</source>) in the usual manner.
+
To deal efficiently with panel data we will need the <source enclose=none>plm</source> package and you need to downlaod it (<source enclose=none>install.packages("plm")</source>) and load it into the workspace (<source enclose=none>library(plm)</source>) in the usual manner.
 +
 
 +
Details for this package can be found [http://cran.r-project.org/web/packages/plm/vignettes/plm.pdf here].
 +
 
 +
== Example Data ==
 +
 
 +
Here we are using the [[R#Data_Sets|Crime Statistics]] dataset for illustration. It is used in Example 13.9 in Wooldridge's Introductory Econometrics.

Revision as of 15:27, 9 July 2015

In this section we shall discuss how to deal with panel data and how to use econometric techniques that exploit the additional analysis that can be performed due to the Panel character of data.

A lot of this material repeats material that is discussed in this YouTube clip [1].

The plm package

To deal efficiently with panel data we will need the plm package and you need to downlaod it (install.packages("plm")) and load it into the workspace (library(plm)) in the usual manner.

Details for this package can be found here.

Example Data

Here we are using the Crime Statistics dataset for illustration. It is used in Example 13.9 in Wooldridge's Introductory Econometrics.