Hi,
I am running a regression analysis that clusters standard errors (at the classroom level due to nested data). I am checking the regression assumptions, but ran into problems when trying to calculate the leverage values. I ran the command <predict h, hat> and <predict h, leverage>, but Stata returned an error message stating "Option hat not allowed after robust estimation."
Does anyone know why this is the case? Is it appropriate to calculate hat values in my case, and how do I go about doing it?
Thanks!
I am running a regression analysis that clusters standard errors (at the classroom level due to nested data). I am checking the regression assumptions, but ran into problems when trying to calculate the leverage values. I ran the command <predict h, hat> and <predict h, leverage>, but Stata returned an error message stating "Option hat not allowed after robust estimation."
Does anyone know why this is the case? Is it appropriate to calculate hat values in my case, and how do I go about doing it?
Thanks!
Comment