Calculating within, between or overall R-square in R
问题 I'm migrating from Stata to R ( plm package ) in order to do panel model econometrics. In Stata, panel models such as random effects usually report the within, between and overall R-squared. I have found that the reported R-squared in the plm Random Effects models corresponds to the within R squared. So, is there any way to get the overall and between R-squared using the plm package in R? See same example with R and Stata: library(plm) library(foreign) # read Stata files download.file('http:/