Re: [R] Subset function of lm() does not seem to work

2004-02-07 Thread Peter Dalgaard
Ajay Shah <[EMAIL PROTECTED]> writes: > # Subset vector : the 1st 25 are on, the remaining 75 are off. > window = c(rep(1,25), rep(0,75)) > > model <- lm(dlinrchf ~ dlusdchf + dljpychf + dldemchf, A, window) > summary(model) >

[R] Subset function of lm() does not seem to work

2004-02-06 Thread Ajay Shah
Folks, I have an elementary question about the lm() function, where I'm trying to exploit the "subset" feature, to make it use only a subset of the observations. My code is: -- A <- read.table(file="datafile.2", col