Re: [R] problem with lm, and summary.lm

2008-11-16 Thread Tolga Uzuner
Many thanks Gabor, as always, much appreciated. Regards, Tolga Gabor Grothendieck wrote: R has introduced a new function xtfrm and in order for zoo to work with it there must be an xtfrm zoo method. The development version of zoo has such a method but its not yet released. Try this: xtfrm.zoo

Re: [R] problem with lm, and summary.lm

2008-11-16 Thread Gabor Grothendieck
R has introduced a new function xtfrm and in order for zoo to work with it there must be an xtfrm zoo method. The development version of zoo has such a method but its not yet released. Try this: xtfrm.zoo <- coredata and then run your code. On Sun, Nov 16, 2008 at 12:20 PM, Tolga Uzuner <[EMA

Re: [R] problem with lm, and summary.lm

2008-11-16 Thread Tolga Uzuner
Dear Gabor, Many thanks. That snippet of code also works for me (below). I am currently on 2.8.0. However, it continues to fail on the specific data I am using. I have attached the data in data.RData, attached here. If you save this file into the working directory and run the following, that

Re: [R] problem with lm, and summary.lm

2008-11-16 Thread Gabor Grothendieck
Try upgrading to R 2.8.0 patched. This works for me using R 2.8.0 patched from Nov 10th: library(zoo) z <- 1:10 x <- z*z y <- x*z lm(z ~ x + y) summary(lm(z ~ x + y)) > packageDescription("zoo")$Version [1] "1.5-4" > R.version.string # Vista [1] "R version 2.8.0 Patched (2008-11-10 r46884)" On

[R] problem with lm, and summary.lm

2008-11-16 Thread Tolga Uzuner
Dear R Users, I am having a weird problem. I have three zoo time series, foo, bar and baz. I run a simple linear regression with foo as the dependent and bar+baz as independents. Even though the regression runs fine, summary seems to fail.The code is below. I am happy to send the data along. I