Re: [R] Extract r.squared using cbind in lm

2011-09-08 Thread Petr PIKAL
Hi > > Hello, > > I am using cbind in a lm-model. For standard lm-models > the r.squared can be easily extracted with summary(model)$r.squared, > but that is not working in in the case with cbind. > > Here an example to illustrate the problem: > a <- c(1,3,5,2,5,3,1,6,7,2,3,2,6) > b <- c(12,15,

Re: [R] Extract r.squared using cbind in lm

2011-09-08 Thread peter dalgaard
On Sep 8, 2011, at 14:53 , Johannes Radinger wrote: > Hello, > > I am using cbind in a lm-model. For standard lm-models > the r.squared can be easily extracted with summary(model)$r.squared, > but that is not working in in the case with cbind. > > Here an example to illustrate the problem: > a

[R] Extract r.squared using cbind in lm

2011-09-08 Thread Johannes Radinger
Hello, I am using cbind in a lm-model. For standard lm-models the r.squared can be easily extracted with summary(model)$r.squared, but that is not working in in the case with cbind. Here an example to illustrate the problem: a <- c(1,3,5,2,5,3,1,6,7,2,3,2,6) b <- c(12,15,18,10,18,22,9,7,9,23,12,