[R] Regression with Missing values. na.action?

2007-07-26 Thread Vaibhav Gathibandhe
Hi all, Can you please tell me what is the problem here. My regression eq is y = B0 + B1X1 +B2X2 +e And i am interested in coefficient B1 I am doing regression with two cases: 1) reg<-lm(y ~ X1 + X2, sam) where sam is the data 2) reg<-lm(y ~ X1 + X2, sam, na.action= na.exclude) . I have missi

Re: [R] R: Appending the files

2007-04-21 Thread Vaibhav Gathibandhe
output is > > "","V1","V2","V3" > "1",0,0,0 > "2",0,0,0 > "","V1","V2","V3" > "1",1,1,1 > "2",1,1,1 > > and the warning is because no csv-reader is goin

[R] R: Appending the files

2007-04-20 Thread Vaibhav Gathibandhe
d to "foo.csv" in the following way V1V2 V3 1 0 0 0 2 0 0 0 V1V2 V3 1 1 1 1 2 1 1 1 If data is getting appended then why I am getting the warning message? Moreover is there any way by which i can get the data of *mat2* beside the data of *mat1* instead of bel