Dear Sir/ Madam,
I have tried everything I could under the sun and would really appreciate any help with this.
I am using a gravity model to estimate the impact of international student stock in Australia on bilateral imports/ exports. I use panel data from 2002-2016 with the 50 countries who have the largest international student stock in Australia. I do this by sector (60 sectors), so I run 120 separate regressions.
Using STATA 15.1, ivppml, command by Joao Silva, I get the error that I don't have enough instruments. However, I do have enough instruments, the command appears to exclude the country dummies from my instruments list that are collinear prior to excluding it in my regressor list.
I have a loop of 60 sectors that I am running, so it would be infeasible to manually remove collinear country-dummies for each sector loop, as for each regression different country dummies are collinear and excluded.
Code for one example sector:
Note that I have simplified my code to only include one sector (a1213dairyprodpro), instead of all 60 sectors.
a1213dairyprodproe6- Dairy exports from Australian to country j (I use e6 to mean scaled down by 1 000 000)
ln_intlse3- log higher ed international student stock from country j
ln_mige3- log migrant stock from country j
ln_nexc - log exchange rate Aus/ country j
ln_pope6- log population in country j
ln_rpercap- log real gdp per capita in country j
rank- the numbers I assigned to different country string variables, denoting the "rank" in no. of international students in Aus
When I tried to manually drop instruments for one sector, I get regression results, but at the end I get an error message
[But again this is not feasible to do 120 times]
I have also tried:
Thanks!!
Alice
[Note, apologies my first name is Alice, but Alice Li was not available, so had to use Alicee]
I have tried everything I could under the sun and would really appreciate any help with this.
I am using a gravity model to estimate the impact of international student stock in Australia on bilateral imports/ exports. I use panel data from 2002-2016 with the 50 countries who have the largest international student stock in Australia. I do this by sector (60 sectors), so I run 120 separate regressions.
Using STATA 15.1, ivppml, command by Joao Silva, I get the error that I don't have enough instruments. However, I do have enough instruments, the command appears to exclude the country dummies from my instruments list that are collinear prior to excluding it in my regressor list.
I have a loop of 60 sectors that I am running, so it would be infeasible to manually remove collinear country-dummies for each sector loop, as for each regression different country dummies are collinear and excluded.
Code for one example sector:
Code:
. foreach y in a1213dairyprodpro{ 2. eststo: ivppml `y'e6 ln_intlse3 ln_mige3 ln_nexc ln_pope6 ln_rpercap year_2003 yea > r_2004 year_2005 year_2006 year_2007 year_2008 year_2009 year_2010 year_2011 year_2012 year_2 > 013 year_2014 year_2015 year_2016 rank_2 rank_3 rank_4 rank_5 rank_6 rank_7 rank_8 rank_9 ran > k_10 rank_11 rank_12 rank_13 rank_14 rank_15 rank_16 rank_18 rank_19 rank_20 rank_21 rank_22 > rank_23 rank_24 rank_25 rank_26 rank_27 rank_28 rank_29 rank_30 rank_31 rank_32 rank_33 rank_ > 34 rank_35 rank_36 rank_37 rank_38 rank_39 rank_40 rank_41 rank_42 rank_43 rank_44 rank_45 ra > nk_46 rank_47 rank_48 rank_49 rank_50, inst(ln_isnawee3 ln_mige3 ln_nexc ln_pope6 ln_rpercap > year_2003 year_2004 year_2005 year_2006 year_2007 year_2008 year_2009 year_2010 year_2011 yea > r_2012 year_2013 year_2014 year_2015 year_2016 rank_2 rank_3 rank_4 rank_5 rank_6 rank_7 rank > _8 rank_9 rank_10 rank_11 rank_12 rank_13 rank_14 rank_15 rank_16 rank_18 rank_19 rank_20 ran > k_21 rank_22 rank_23 rank_24 rank_25 rank_26 rank_27 rank_28 rank_29 rank_30 rank_31 rank_32 > rank_33 rank_34 rank_35 rank_36 rank_37 rank_38 rank_39 rank_40 rank_41 rank_42 rank_43 rank_ > 44 rank_45 rank_46 rank_47 rank_48 rank_49 rank_50) 3. } Dropped instruments: rank_23 rank_28 rank_30 rank_36 rank_39 model is not identified; there are more parameters, 68, than instruments, 63 r(481);
a1213dairyprodproe6- Dairy exports from Australian to country j (I use e6 to mean scaled down by 1 000 000)
ln_intlse3- log higher ed international student stock from country j
ln_mige3- log migrant stock from country j
ln_nexc - log exchange rate Aus/ country j
ln_pope6- log population in country j
ln_rpercap- log real gdp per capita in country j
rank- the numbers I assigned to different country string variables, denoting the "rank" in no. of international students in Aus
When I tried to manually drop instruments for one sector, I get regression results, but at the end I get an error message
Code:
Instruments for equation 1: ln_isnawee3 ln_mige3 ln_nexc ln_pope6 ln_rpercapgdp year_2003 year_2004 year_2005 year_2006 year_2007 year_2008 year_2009 year_2010 year_2011 year_2012 year_2013 year_2014 year_2015 year_2016 rank_2 rank_4 rank_6 rank_7 rank_8 rank_9 rank_10 rank_13 rank_14 rank_15 rank_16 rank_18 rank_19 rank_20 rank_22 rank_24 rank_25 rank_26 rank_27 rank_31 rank_32 rank_34 rank_37 rank_40 rank_42 rank_43 rank_44 rank_45 rank_46 rank_47 rank_48 rank_49 rank_50 _cons equation 1 not found r(303);
I have also tried:
- gmm (error: flat or discontinuous region encountered)
- ivpoisson gmm- (error: Hessian is not positive semidefinite)
Thanks!!
Alice
[Note, apologies my first name is Alice, but Alice Li was not available, so had to use Alicee]
Comment