I don't understand why this is a bug in usage. Is it because the 2nd
argument is not named? I get the same behavior if I do name it:
=
[R version 2.6.2 (2008-02-08), Windows XP Pro]
R> x = rep(1:4,3)
R> y = (1:12)^1.5
R> lm(y ~ poly(x, degree=10))
Call:
lm(formula = y ~ poly(x, degree = 1
The poly() function can create more variables than can be fitted when
there are replicated values. In the example below, 'x' has only 5
distinct values, but I can apparently fit a 12th-degree polynomial with
no error messages or even nonzero coefficients:
R> x = rep(1:5,3)
R> y = rnorm(15)
R>
Full_Name: Russell Lenth
Version: 2.6.2
OS: Windows XP Pro
Submission from: (NULL) (128.255.132.36)
The poly() function allows a higher-degree polynomial than it should, when
raw=FALSE.
For example, consider 5 distinct 'x' values, each repeated twice. we can fit a
polynomial o
Oops -- I meant R version 2.5.1, not 1.5.1. My apologies.
--
Russell V. Lenth, Professor
Department of Statistics
& Actuarial Science(319)335-0814FAX (319)335-3017
The University of Iowa [EMAIL PROTECTED]
Iowa City, IA 52242 USA http://www.stat.uiowa.edu/~rle
Full_Name: Russ Lenth
Version: 1.5.1
OS: Windows XP Pro
Submission from: (NULL) (128.255.132.36)
I run a Windows system on which I do not have administrator rights. I am unable
to install R packages, even in a location that I have access to. I get a
message that it can't write to the specified
I am so embarrassed. I now see the syntax error in my original batch
file; and if I correct it, it works just fine. I don't know why I
didn't get a DOS error with it; if I had, it obviously would have saved
me from reporting it as an R bug. My apologies for causing trouble --
it definitely i
Full_Name: Russell V. Lenth
Version: 2.3.1
OS: Windows XP Pro
Submission from: (NULL) (128.255.132.188)
I wrote a simple .BAT file to run the Sweave function on a file (via RTerm),
then run pdflatex on the result (after RTerm exits). The issue is that if an
error condition occurs in RTerm, it is