From Hayashi, 2000, p.20, I've understood that we can have some troubles in computing $R^2$ when the constant is not included in our model (e.g. negative $R^2$), but we can avoid them using $R^2_u = \hat{y}'\hat{y}/{y'y}$, the so-called uncentered $R^2$.
I've read also other discussion on the topic (e.g. removal-of-statistically-significant-intercept-term), but I have still some doubts:
Does the $R^2$ in a model without a constant become $R^2_u$ or the formulas stay different and we can look at $R^2_u$ as a solution in the case of constant absence?
How statistical softwares (r
, stata
) deal with this problem? I mean do they show automatically $R^2_u$ when the constant is not included or they show a wrong $R^2$?