
Last chance! 50% off unlimited learning
Sale ends in
pdim(x,...)
## S3 method for class 'pdata.frame':
pdim(x,...)
## S3 method for class 'data.frame':
pdim(x,id,time,...)
data.frame
or a pdata.frame
,pdim
containing the following elements :n
, the number of individuals,
T
, the number of time observations, N
the total number
of observations,Ti
gives the
number of observations for each individuals and nt
gives
the number of individuals observed for each period,TRUE
for a balanced panel,
FALSE
for an unbalanced panel,id.names
contains the names of each individual and time.names
contains the names of each period.pdim
is called by pdata.frame
and by plm
if
there are some missing values.pdata.frame
and plm
library(Ecdat)
data(Produc)
pdim(Produc,"state","year")
Run the code above in your browser using DataLab