On the FAQs list I found an article titled "Do-it-yourself-R-squared'.
In the article, R-squared is calculated by using the correlation coefficient of the observed and predicted values of the outcome measure:
Question:
Does the proposed syntax also yields valid R-squared values after (xt)mixed?
In the article, R-squared is calculated by using the correlation coefficient of the observed and predicted values of the outcome measure:
predict y_p if e(sample)I understand that predict by default calculates the linear prediction from the fitted model (xb).
corr y y_p if e(sample)
di r(rho)^2
Question:
Does the proposed syntax also yields valid R-squared values after (xt)mixed?
Comment