[R] Question About lm()
Ivan Krylov
kry|ov@r00t @end|ng |rom gm@||@com
Thu Feb 10 08:20:41 CET 2022
On Wed, 9 Feb 2022 22:00:40 +0000
"Bromaghin, Jeffrey F via R-help" <r-help using r-project.org> wrote:
> These models are equivalent and the estimated coefficients come out
> fine, but the R-squared and F statistics returned by summary() differ
> markedly.
Is the mean of yResp far from zero? Here's what summary.lm says about
that:
>> r.squared: R^2, the ‘fraction of variance explained by the model’,
>>
>> R^2 = 1 - Sum(R[i]^2) / Sum((y[i] - y*)^2),
>>
>> where y* is the mean of y[i] if there is an intercept and
>> zero otherwise.
--
Best regards,
Ivan
More information about the R-help
mailing list