Re: [R] Odd r-squared

2003-11-03 Thread Prof Brian Ripley
On Mon, 3 Nov 2003, Simon Wotherspoon wrote: I would consider the calculation of r-squared in the following to be a bug, but then, I've been wrong before. It seems that R looks to see if the model contains an intercept term, and if it does not, computes r-squared in a way I don't

Re: [R] Odd r-squared

2003-11-03 Thread kjetil
On 3 Nov 2003 at 17:53, Simon Wotherspoon wrote: If you are really interested, you could write your own function to calculate r-squared, deciding from the model matrix if the range space of the model matrix contains a constant vector. If model is the model matrix with n rows, one way is to

[R] Odd r-squared

2003-11-02 Thread Simon Wotherspoon
Hi, I would consider the calculation of r-squared in the following to be a bug, but then, I've been wrong before. It seems that R looks to see if the model contains an intercept term, and if it does not, computes r-squared in a way I don't understand. To my mind, the following are two