Dear all,
I have a problem. I have some panel data and would like to check whether my assumption of homoskedasticity is violated or not. To do so, I need to predict the residuals and then tabulate them by my entity variables.
following code:
// Run the regression model
xtreg Y X1, fe
// Predict the residuals
predict residual , e
// Tabulate residuals by entity variables
tabulate entity_var1 , summarize(res)
But state outputs me that i have too many values ? Is there any solution / different code i could apply here ?
Because if those are indeed heteresokedastic i would wan to cluster them :
xtreg Y X1, fe vce(cluster entity_var1)
Thank you
I have a problem. I have some panel data and would like to check whether my assumption of homoskedasticity is violated or not. To do so, I need to predict the residuals and then tabulate them by my entity variables.
following code:
// Run the regression model
xtreg Y X1, fe
// Predict the residuals
predict residual , e
// Tabulate residuals by entity variables
tabulate entity_var1 , summarize(res)
But state outputs me that i have too many values ? Is there any solution / different code i could apply here ?
Because if those are indeed heteresokedastic i would wan to cluster them :
xtreg Y X1, fe vce(cluster entity_var1)
Thank you
Comment