Gravity Model
Posted: Sat Dec 12, 2009 3:27 pm
Hi guys,
I need your assistance, I am a newbie for Eviews :)
There is a model that I must estimate but I don't know how.
Here is the model.
log (tradeij) = β0 + β1log(GDPi) + β2log(GDPj) + β3log(distanceij) + β4RTAij + εij
trade ij = trade between country i and country j (e.g. between Turkey and Germany)
β0, β1, β2, β3, β4 = unknown parameters
log(GDPi) = Gross domestic product for country i
log(GDPj) = Gross domestic product for country j
log(distanceij) = distance between country i and country j
RTAij = Regional Trade Agreements between country i and country j ( RTA takes only 0 or 1 values)
εij = error term
Here is the data examples between Turkiye and Germany
obs trade GDP_Germany GDP_Turkiye Distance RTA
1990 6.560.405 1.547.026 149.197 2.036.075 0
1991 6.644.949 1.815.061 147.756 2.036.075 0
1992 7.414.893 2.066.729 156.173 2.036.075 0
1993 8.187.120 2.005.557 177.004 2.036.075 0
1994 7.579.902 2.151.025 128.089 2.036.075 0
1995 1.058.376 2.524.949 166.443 2.036.075 0
1996 1.300.009 2.439.346 178.061 2.036.075 1
1997 1.327.465 2.163.233 186.061 2.036.075 1
1998 1.277.562 2.187.484 197.587 2.036.075 1
1999 1.135.464 2.146.432 181.690 2.036.075 1
2000 1.237.805 1.905.795 198.230 2.036.075 1
2001 1.070.239 1.892.595 143.096 2.036.075 1
2002 1.291.034 2.024.060 182.973 2.036.075 1
2003 1.693.790 2.444.284 240.596 2.036.075 1
2004 2.126.094 2.744.221 302.561 2.036.075 1
2005 2.308.894 2.791.737 362.461 2.036.075 1
2006 2.431.924 2.897.032 392.424 2.036.075 1
2007 2.953.319 3.080.553 432.512 2.036.075 1
2008 3.163.895 3.184.131 455.538 2.036.075 1
P.S.: You can find the data examples in the attached file.
I use this equation but I get this error.
Equation = log(trade) c log(GDP_Germany) log(GDP_Turkiye) log(Distance) rta
Error = Near singular matrix
When I remove the "log(Distance)" , there isn't any error.
How can I insert "log(Distance)" in to the equation.
Thanks for your support.
B.R.
I need your assistance, I am a newbie for Eviews :)
There is a model that I must estimate but I don't know how.
Here is the model.
log (tradeij) = β0 + β1log(GDPi) + β2log(GDPj) + β3log(distanceij) + β4RTAij + εij
trade ij = trade between country i and country j (e.g. between Turkey and Germany)
β0, β1, β2, β3, β4 = unknown parameters
log(GDPi) = Gross domestic product for country i
log(GDPj) = Gross domestic product for country j
log(distanceij) = distance between country i and country j
RTAij = Regional Trade Agreements between country i and country j ( RTA takes only 0 or 1 values)
εij = error term
Here is the data examples between Turkiye and Germany
obs trade GDP_Germany GDP_Turkiye Distance RTA
1990 6.560.405 1.547.026 149.197 2.036.075 0
1991 6.644.949 1.815.061 147.756 2.036.075 0
1992 7.414.893 2.066.729 156.173 2.036.075 0
1993 8.187.120 2.005.557 177.004 2.036.075 0
1994 7.579.902 2.151.025 128.089 2.036.075 0
1995 1.058.376 2.524.949 166.443 2.036.075 0
1996 1.300.009 2.439.346 178.061 2.036.075 1
1997 1.327.465 2.163.233 186.061 2.036.075 1
1998 1.277.562 2.187.484 197.587 2.036.075 1
1999 1.135.464 2.146.432 181.690 2.036.075 1
2000 1.237.805 1.905.795 198.230 2.036.075 1
2001 1.070.239 1.892.595 143.096 2.036.075 1
2002 1.291.034 2.024.060 182.973 2.036.075 1
2003 1.693.790 2.444.284 240.596 2.036.075 1
2004 2.126.094 2.744.221 302.561 2.036.075 1
2005 2.308.894 2.791.737 362.461 2.036.075 1
2006 2.431.924 2.897.032 392.424 2.036.075 1
2007 2.953.319 3.080.553 432.512 2.036.075 1
2008 3.163.895 3.184.131 455.538 2.036.075 1
P.S.: You can find the data examples in the attached file.
I use this equation but I get this error.
Equation = log(trade) c log(GDP_Germany) log(GDP_Turkiye) log(Distance) rta
Error = Near singular matrix
When I remove the "log(Distance)" , there isn't any error.
How can I insert "log(Distance)" in to the equation.
Thanks for your support.
B.R.