Skip to content

pdata.frame for panel data

3 messages · ele.fanti at gmx.de, Kirsten Svenja Wiebe, Achim Zeileis

#
Hi there,

as a newbie in R I have a question on the plm package for panel data:

How do I actually manage to get data into the pdata.frame format?
i.e. how do I declare id and time? I already tried various things and got even more error messages. for example
serie SYC  is NA and has been removed
Fehler in (function(x, i) if (is.matrix(i)) as.matrix(x)[[i]] else .subset2(x,  : 
        rekursives Indizieren auf Level 2 fehlgeschlagen

where EMPR is a data.frame with 16 rows (time) and 15 columns (countries).

Thank you,
Kirsten
#
Hi there,

additionally to the question below, how I can get data into the pdata.frame format, I have another question:

Why doen't R recognize the function plm.data (), when calling it? I did load the plm library before...

Greetz, Kirsten


How do I actually manage to get data into the pdata.frame format?
i.e. how do I declare id and time? I already tried various things and got even more error messages. for example
serie SYC  is NA and has been removed
Fehler in (function(x, i) if (is.matrix(i)) as.matrix(x)[[i]] else .subset2(x,  :
        rekursives Indizieren auf Level 2 fehlgeschlagen

where EMPR is a data.frame with 16 rows (time) and 15 columns (countries).

Thank you,
Kirsten
2 days later
#
Kirsten:
I suspect that you have an outdated version of "plm" and possibly R as 
well. (You don't supply either version although the posting guide asks you 
to.) plm version 1.0-1 is current.

The function pdata.frame() was removed and part of its functionality moved 
to the function plm.data() (in version 0.2-2, I think).

For a discussion, see the Journal of Statistical Software paper by the 
authors of the plm package:
   Yves Croissant, Giovanni Millo
   Panel Data Econometrics in R: The plm Package
   http://www.jstatsoft.org/v27/i02/

Best,
Z