Page 1 of 1

panel - difference

Posted: Tue May 11, 2021 9:49 pm
by tvonbrasch
Hi,

I am not used to working with panel pages. I want to create a series where I take the difference between a variable and a particular cross section of that variable. In a pool-setting, this can be done by defining the reference cross section !ref and then using the command:

Code: Select all

id.genr x_? = x_?-x_{!ref}
where id is the pool identifier. How can I do a similar operation in a panel workfile?
t

Re: panel - difference

Posted: Wed May 12, 2021 8:15 am
by EViews Gareth
Probably easier ways, but I think this works:

Code: Select all

x-@maxsby(x, @date, "if @crossid=1")
Where replace the @crossid=1 bit by whatever cross-section you want to minus.

Re: panel - difference

Posted: Thu May 13, 2021 7:57 am
by tvonbrasch
great, thanks!
t

Re: panel - difference

Posted: Tue Sep 14, 2021 2:48 am
by Ingrid1
Since this is panel data are you using fixed effects or random effects or is this simply OLS?

If you are just using OLS it is possible that your estimates will turn out biased.