library(Ecdat)
#There are 595 individuals
data(Wages)
pdata.frame(Wages,595)
# Gasoline contains two variables which are individual and time indexes
# The pdata.frame is called gas
data(Gasoline)
pdata.frame(Gasoline,"country","year",name="gas")
summary(Gasoline)
# Hedonic is an unbalanced panel, townid is the individual index
data(Hedonic)
pdata.frame(Hedonic,"townid")
Run the code above in your browser using DataLab