2014 8:37 AM
To: Andrews, Chris; r-help@r-project.org
Subject: Re: [R] summary.lm() for zero variance response
Hi Chris,
Here my output (I have not yet installed R 3.0.3)
> n=10;k=1;summary(lm(rep(k,n)~rnorm(n)))
Call:
lm(formula = rep(k, n) ~ rnorm(n))
Residuals:
Min 1Q
ted R-squared:NaN
F-statistic: NaN on 1 and 8 DF, p-value: NA
sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-w64-mingw32/x64 (64-bit)
-Original Message-
From: Vito M. R. Muggeo [mailto:vito.mug...@unipa.it]
Sent: Wednesday, March 12, 2014 6:27 AM
To: r-help@r-project.org
Subje
nipa.it]
Sent: Wednesday, March 12, 2014 6:27 AM
To: r-help@r-project.org
Subject: [R] summary.lm() for zero variance response
dear all,
a student of mine brought to my attention the following, somewhat odd,
behaviour of summary.lm() when the response variance is zero (yes,
possibly meaningless from a
dear all,
a student of mine brought to my attention the following, somewhat odd,
behaviour of summary.lm() when the response variance is zero (yes,
possibly meaningless from a practical viewpoint). Namely something like
n=10;k=1;summary(lm(rep(k,n)~rnorm(n)))
The values of k, n and the covari
4 matches
Mail list logo