How To Insert a Time Trend
Posted: Sun Mar 29, 2015 5:18 am
Hello,
I am trying to insert a time trend into my model estimating the impact of HIV on GDP. I have included capital investment, gov spending HIV prevalence and Life Expectancy as independent variables. I took logs of all variables in the estimation equation so my equation is: log(gdp) c log(govspend) log(capital) log(hiv) log(life). I also estimated this equation with cross-section and panel fixed effects. However, whenever i try and insert @trend to include a time trend within my model to test for serial autocorrelation, I get near singular matrix error. I have no idea what this is and no idea on how to fix this. Please Help. I have attached my workfile and used all the adjusted data for the regression and life expectancy.
I am trying to insert a time trend into my model estimating the impact of HIV on GDP. I have included capital investment, gov spending HIV prevalence and Life Expectancy as independent variables. I took logs of all variables in the estimation equation so my equation is: log(gdp) c log(govspend) log(capital) log(hiv) log(life). I also estimated this equation with cross-section and panel fixed effects. However, whenever i try and insert @trend to include a time trend within my model to test for serial autocorrelation, I get near singular matrix error. I have no idea what this is and no idea on how to fix this. Please Help. I have attached my workfile and used all the adjusted data for the regression and life expectancy.