by group statistics? - excluding a country
Posted: Mon Aug 04, 2014 1:44 pm
Hello forum users,
I use EViews 7 and have a question regarding the by group statistics. I want to compute a panel regression. You see the mentioned part of the regression in the following form:
ln FDI_i_jt = α1 ln FDI_other_jt + ……
E.g FDI_i_jt is the inward FDI from i=USA to j=Germany. Now I need the sum of all other FDI (except USA) to Germany for each year, because I expect that other FDI to Germany have a negative impact on the FDI from USA to Germany.
That means i need a series which gives me the sum of FDI from every country (except country i) to country j for each year.
I tried it with the by group statistics, but the only thing I got was to get the sum of FDI of all countries to country j for the aggregated years with the following command:
series fdi_other = @sumsby(fdi_stock, ctr_o)
Does anybody know how I could exclude a country embedded in a for-loop or sth like that?
Thanks in advance!
I use EViews 7 and have a question regarding the by group statistics. I want to compute a panel regression. You see the mentioned part of the regression in the following form:
ln FDI_i_jt = α1 ln FDI_other_jt + ……
E.g FDI_i_jt is the inward FDI from i=USA to j=Germany. Now I need the sum of all other FDI (except USA) to Germany for each year, because I expect that other FDI to Germany have a negative impact on the FDI from USA to Germany.
That means i need a series which gives me the sum of FDI from every country (except country i) to country j for each year.
I tried it with the by group statistics, but the only thing I got was to get the sum of FDI of all countries to country j for the aggregated years with the following command:
series fdi_other = @sumsby(fdi_stock, ctr_o)
Does anybody know how I could exclude a country embedded in a for-loop or sth like that?
Thanks in advance!