Re: [R] "Within" model in plm package: is the reported R-squared correct?

2018-02-20 Thread Bert Gunter
Generally speaking, statistical questions are O/T here, but sometimes they intersect with on-topic R programming issues and do get responses. So if you do not get a response here, try a statistics forum, like stats.stackexchange.com . Cheers, Bert Bert Gunter "The trouble with having an open

[R] "Within" model in plm package: is the reported R-squared correct?

2018-02-20 Thread Dung Nguyen
Hi everyone, I am doing panel data analysis using the 'plm' package. However, I have noticed that the plm() function reports a different value of R-squared from the R-squared of the lm() function with time-demeaned data. To be clear, I have tried to compute the within model both manually (run an O