What is the difference between $\hat{e}^2_i$ and $\sigma^2_i$?
In regression, we assume that $var(e_i)=E(e_i^2)=var(y_i)=\sigma_i^2$.
Does this imply that $\sigma_i^2$(the sample variance) is equal to $\hat{e}_i^2$?
When we calculate FGLS (feasible generalized least squres), we consider $\ln(\hat{e}_i^2)=\ln(\sigma_i^2)+v_i$, where $v_i$ is just the error term. This seems that we distinguish $\sigma_i^2$ from $\hat{e}_i^2$.
But, when we calculate the robust robust standard error, we simply repalce $\sigma_i^2$ with $\hat{e}_i^2$. Thus, theses two are considered to be equal.
I am confused with these two terms. Can anybody clarify this?
Thank you in advance.