use "split' to split your dataframe by country and then do the diff.
On Sat, Sep 20, 2008 at 8:54 PM, Gabriel Paul Mihalache
<[EMAIL PROTECTED]> wrote:
> I was suggested that more details with help re: my question on first
> differences in panel data...
> The data set in question is PWT6.2:
>
>> s
> This doesn't help you immediately, but in the next couple of days I'll
> be releasing the plyr function which would allow you do something
> like:
Thank you! I'm looking forward to it!
Meanwhile, Mark Leeds sent me exactly the code I needed. (Using
split() to get df-s by country and then just u
Hi Gabriel,
On Sat, Sep 20, 2008 at 7:54 PM, Gabriel Paul Mihalache
<[EMAIL PROTECTED]> wrote:
> I was suggested that more details with help re: my question on first
> differences in panel data...
> The data set in question is PWT6.2:
>
>> str(pwt6.2)
> 'data.frame': 10340 obs. of 27 variables:
Hello, everyone!
I'd like to find out how I can do first log differences in a panel?
(The Penn World Table data that's available in the PWT package)
The regular diff() function ignores the country/index/"panel unit",
with depressing results.
A second request, how can I best "filter" the data (e.g.
I was suggested that more details with help re: my question on first
differences in panel data...
The data set in question is PWT6.2:
> str(pwt6.2)
'data.frame': 10340 obs. of 27 variables:
$ country: Factor w/ 188 levels "Afghanistan",..: 1 1 1 1 1 1 1 1 1 1 ...
$ isocode: Factor w/ 188 leve
5 matches
Mail list logo