Re: [Rd] Bug in poly() (PR#11243)

2008-05-15 Thread russell-lenth
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

[Rd] poly() can exceed degree k - 1 for k distinct points (PR#11251)

2008-04-23 Thread russell-lenth
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>

[Rd] Bug in poly() (PR#11243)

2008-04-22 Thread russell-lenth
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

[Rd] PR#9848

2007-08-14 Thread russell-lenth
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

[Rd] Non-administrator can't install packages (PR#9848)

2007-08-13 Thread russell-lenth
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

Re: [Rd] No exit codes from RTerm (Windows) (PR#9296)

2006-10-14 Thread russell-lenth
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

[Rd] No exit codes from RTerm (Windows) (PR#9296)

2006-10-13 Thread russell-lenth
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