Re: [R] linear fit function with NA values

2013-07-27 Thread arun
.2.2 loaded via a namespace (and not attached): [1] plyr_1.8    tools_3.0.1 BTW, It is better to ?dput() the example dataset. A.K. - Original Message - From: iza.ch1 To: arun Cc: R help Sent: Saturday, July 27, 2013 4:46 PM Subject: Re: Re: [R] linear fit function with NA values Hi

Re: [R] linear fit function with NA values

2013-07-27 Thread iza.ch1
gt; You need to provide a reproducible example to understand the situation better. > A.K. > > > > > > > > > > > > > > - Original Message - > From: iza.ch1 > To: r-help@r-project.org > Cc: > Sent: Saturday, July 27,

Re: [R] linear fit function with NA values

2013-07-27 Thread arun
provide a reproducible example to understand the situation better. A.K. - Original Message - From: iza.ch1 To: r-help@r-project.org Cc: Sent: Saturday, July 27, 2013 8:47 AM Subject: [R] linear fit function with NA values Hi Quick question. I am running a multiple regression function

[R] linear fit function with NA values

2013-07-27 Thread iza.ch1
Hi Quick question. I am running a multiple regression function for each column of two data sets. That means as a result I get several coefficients. I have a problem because data that I use for regression contains NA. How can I ignore NA in lm function. I use the following code for regression: