On Wed, 9 Feb 2022 22:00:40 +0000
"Bromaghin, Jeffrey F via R-help" <r-help@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

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to