Re: [R] Independent variables omitted in lm and glm

2010-08-17 Thread Gavin Simpson
On Tue, 2010-08-17 at 10:29 +0800, elaine kuo wrote: > Dear List, > > > > Some independent variable were missing in calculation using lm and glm > (gaussian). > > (X= Y1+Y2+..+Y16, Independent number: 16 variable) What's this? This isn't valid R code. If it is `Elaine Kuo model notation` how o

Re: [R] Independent variables omitted in lm and glm

2010-08-16 Thread elaine kuo
sorry I forget the attachments Dear List, > > > > Some independent variable were missing in calculation using lm and glm > (gaussian). > > (X= Y1+Y2+…..+Y16, Independent number: 16 variable) > > However, those variables did work well in cor(X, Y) respectively. > > str(dataframe) was also run to en

[R] Independent variables omitted in lm and glm

2010-08-16 Thread elaine kuo
Dear List, Some independent variable were missing in calculation using lm and glm (gaussian). (X= Y1+Y2+…..+Y16, Independent number: 16 variable) However, those variables did work well in cor(X, Y) respectively. str(dataframe) was also run to ensure that the variables were all numbers. Mor