Hi All,
I have an issue with performing my multilevel mixed effects regressions analysis with clustered standard errors. I don't know what going wrong. I have a panel with firms located in several countries (50) and I use lags of the independent variables. I have checked whether the firms are constant within the countries over the years and that is the case. I make use of interaction variables.
If I do a regression analysis without clustering the standard errors everything works fine, so, my regression analysis is:
mixed y l.c.x1*l.c.x2 l.x1 l.x2 l.x3 l.yeardummies l.industrydummies|| ccode:
the ccode is the country-level variable (highest hierarchical level). However, I want to cluster the standard errors of course, so I followed the help mixed command in stata with , vce (cluster ccode) or vce(robust):
mixed y l.c.x1*l.c.x2 l.x1 l.x2 l.x3 l.yeardummies l.industrydummies || ccode: , vce(cluster ccode)
But then, I get the error all the time: “error obtaining scores for robust variance” r(430).
I have no clue what goes wrong. I have also tried:
mixed y l.c.x1*l.c.x2 l.x1 l.x2 l.x3 l.yeardummies l.industrydummies [pw=firm] || ccode: , pweight(ccode) pwscale(size)
But again I receive: “error obtaining scores for robust variance” r(430).
Does anyone has an idea what is going on?
Best wishes and many thanks,
Michiel de Roo
I have an issue with performing my multilevel mixed effects regressions analysis with clustered standard errors. I don't know what going wrong. I have a panel with firms located in several countries (50) and I use lags of the independent variables. I have checked whether the firms are constant within the countries over the years and that is the case. I make use of interaction variables.
If I do a regression analysis without clustering the standard errors everything works fine, so, my regression analysis is:
mixed y l.c.x1*l.c.x2 l.x1 l.x2 l.x3 l.yeardummies l.industrydummies|| ccode:
the ccode is the country-level variable (highest hierarchical level). However, I want to cluster the standard errors of course, so I followed the help mixed command in stata with , vce (cluster ccode) or vce(robust):
mixed y l.c.x1*l.c.x2 l.x1 l.x2 l.x3 l.yeardummies l.industrydummies || ccode: , vce(cluster ccode)
But then, I get the error all the time: “error obtaining scores for robust variance” r(430).
I have no clue what goes wrong. I have also tried:
mixed y l.c.x1*l.c.x2 l.x1 l.x2 l.x3 l.yeardummies l.industrydummies [pw=firm] || ccode: , pweight(ccode) pwscale(size)
But again I receive: “error obtaining scores for robust variance” r(430).
Does anyone has an idea what is going on?
Best wishes and many thanks,
Michiel de Roo
Comment