Re: [R] scoping problem

2007-10-24 Thread Prof Brian Ripley
7190 > Time 7.5390634 6.1271204 1.2304415 0.3062126 > pred2 -0.1096744 0.1148654 -0.9548081 0.4101142 > > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of Sandy Weisberg >> Sent: Wednesday, Octobe

Re: [R] scoping problem

2007-10-24 Thread Gabor Grothendieck
See: http://finzi.psych.upenn.edu/R/Rhelp02a/archive/67474.html and also the other posts in that thread. On 10/24/07, Sandy Weisberg <[EMAIL PROTECTED]> wrote: > I would like to write a function that computes Tukey's 1 df for > nonadditivity. Here is a simplified version of the function I'd lik

Re: [R] scoping problem

2007-10-24 Thread Christos Hatzis
6 pred2 -0.1096744 0.1148654 -0.9548081 0.4101142 > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Sandy Weisberg > Sent: Wednesday, October 24, 2007 3:44 PM > To: [EMAIL PROTECTED] > Subject: [R] scoping problem > > I would

Re: [R] scoping problem

2007-10-24 Thread Duncan Murdoch
On 10/24/2007 3:43 PM, Sandy Weisberg wrote: > I would like to write a function that computes Tukey's 1 df for > nonadditivity. Here is a simplified version of the function I'd like to > write: (m is an object created by lm): > > tukey.test <- function(m) { > m1 <- update(m, ~.+I(predict(m)^

[R] scoping problem

2007-10-24 Thread Sandy Weisberg
I would like to write a function that computes Tukey's 1 df for nonadditivity. Here is a simplified version of the function I'd like to write: (m is an object created by lm): tukey.test <- function(m) { m1 <- update(m, ~.+I(predict(m)^2)) summary(m1)$coef } The t-test for the added vari