hello, im not sure if my question is related to theory or to programming but i figure people here might be helpful either way. i'm trying to fit a two fixed effects model that has clustered errors and that weights the regressors by the value of the same cross section in 1999. my equation is:
xi: regress mco2 ETS_effect i.cXy i.cXi i.iXy [aweight = co2 ] , cluster(country_indus) robust
where co2 is the co2 level in 1999. and cXy represents the two-way fixed effect for country year, cXi for country industry, iXy for industry year
upon running this i get the error that the matrix is not positive definite and im not quite sure why this is happening since for example when the mco2 is replaced by gross value added, the regression runs fine. any help is very much appreicated!
xi: regress mco2 ETS_effect i.cXy i.cXi i.iXy [aweight = co2 ] , cluster(country_indus) robust
where co2 is the co2 level in 1999. and cXy represents the two-way fixed effect for country year, cXi for country industry, iXy for industry year
upon running this i get the error that the matrix is not positive definite and im not quite sure why this is happening since for example when the mco2 is replaced by gross value added, the regression runs fine. any help is very much appreicated!
Comment