|R-squared after xtgls
|Allen McDowell, StataCorp
The R-squared statistic is an ordinary least squares (OLS) concept that is useful because of the unique way it breaks down the total sum of squares into the sum of the model sum of squares and the residual sum of squares. When you estimate the model’s parameters using generalized least squares (GLS), the total sum of squares cannot be broken down in the the same way, making the R-squared statistic less useful as a diagnostic tool for GLS regressions. Specifically, an R-squared statistic computed from GLS sums of squares need not be bounded between zero and one and does not represent the percentage of total variation in the dependent variable that is accounted for by the model. Also, eliminating or adding variables in a model does not always increase or decrease the computed R-squared value.
Classroom and web training
Teaching with Stata
Statalist: The Stata Forum
Last updated: 16 November 2022
StataCorp LLC (StataCorp) strives to provide our users with exceptional products and services. To do so, we must collect personal information from you. This information is necessary to conduct business with our existing and potential customers. We collect and use this information only where we may legally do so. This policy explains what personal information we collect, how we use it, and what rights you have to that information.
These cookies are essential for our website to function and do not store any personally identifiable information. These cookies cannot be disabled.
Please note: Clearing your browser cookies at any time will undo preferences saved here. The option selected here will apply only to the device you are currently using.