Hi,
I am trying to run a trade gravity regression of the form
log_imports c log_gdp_exporter log_gdp_importer log_distance
I want the coefficient on log_gdp_exporter and log_gdp_importer to be the same for simplicity. I do not know how to combine these two.
Even when I just run this regression as written I get the error message "Near singular Matrix Error"
My workfile is attached. Thanks a lot.
A few problems
Moderators: EViews Gareth, EViews Moderator
-
dirtyphoenix
- Posts: 3
- Joined: Tue Feb 25, 2014 9:07 am
A few problems
- Attachments
-
- international eco spreadsheet france exports.wf1
- (14.99 KiB) Downloaded 164 times
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: A few problems
Your exporter variable is a constant.
-
dirtyphoenix
- Posts: 3
- Joined: Tue Feb 25, 2014 9:07 am
Re: A few problems
Tij = A ((Yi^a)(Yj^b))/Dij^c
ln (Tij) = ln (A) + a [ln (Yi) + ln (Yj)]-cln(Dij)
Tij = Imports
Yi = GDP_Exporter
Yj = GDP_Importer
Dij = Total_Distance_Between
I want to estimate the coefficients ln(A), a=b and c.
France is the exporter in each case, so the GDP_exporter remains the same. How can I get around this problem?
Thanks a lot for your help.
ln (Tij) = ln (A) + a [ln (Yi) + ln (Yj)]-cln(Dij)
Tij = Imports
Yi = GDP_Exporter
Yj = GDP_Importer
Dij = Total_Distance_Between
I want to estimate the coefficients ln(A), a=b and c.
France is the exporter in each case, so the GDP_exporter remains the same. How can I get around this problem?
Thanks a lot for your help.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: A few problems
You cannot. Exporter is perfectly colinear with your constant. Either drop the exporter variable, or get more data (with different exporter values).
-
dirtyphoenix
- Posts: 3
- Joined: Tue Feb 25, 2014 9:07 am
Re: A few problems
I have combined the two variables and this seems to fix this problem.
When I run the log linear regression, I obviously get a coefficient for the constant. But I am looking for the natural log of the constant ln(A) as shown above in the second equation. So should I take the log of this constant? or is it already the log value due to the fact i have regressed using data that is already logged?
When I run the log linear regression, I obviously get a coefficient for the constant. But I am looking for the natural log of the constant ln(A) as shown above in the second equation. So should I take the log of this constant? or is it already the log value due to the fact i have regressed using data that is already logged?
Who is online
Users browsing this forum: No registered users and 2 guests
