[R] question re: summarry.lm and NA values

2006-08-15 Thread r user
Is there a way to get the following code to include NA values where the coefficients are “NA”? ((summary(reg))$coefficients) explanation: Using a loop, I am running regressions on several “subsets” of “data1”. “reg - ( lm(lm(data1[,1] ~., data1[,2:l])) )” My regression has 10 independent

Re: [R] question re: summarry.lm and NA values

2006-08-15 Thread Petr Pikal
Hi On 15 Aug 2006 at 7:01, r user wrote: Date sent: Tue, 15 Aug 2006 07:01:13 -0700 (PDT) From: r user [EMAIL PROTECTED] To: rhelp r-help@stat.math.ethz.ch Subject:[R] question re: summarry.lm and NA values Is there a way

Re: [R] question re: summarry.lm and NA values

2006-08-15 Thread Petr Pikal
], wrote: From: Petr Pikal [EMAIL PROTECTED] To: r user [EMAIL PROTECTED], rhelp r-help@stat.math.ethz.ch Subject:Re: [R] question re: summarry.lm and NA values Date sent: Tue, 15 Aug 2006 17:15:01 +0200 Hi On 15 Aug 2006 at 7

Re: [R] question re: summarry.lm and NA values

2006-08-15 Thread Prof Brian Ripley
On Tue, 15 Aug 2006, Petr Pikal wrote: Hi On 15 Aug 2006 at 7:01, r user wrote: Date sent:Tue, 15 Aug 2006 07:01:13 -0700 (PDT) From: r user [EMAIL PROTECTED] To: rhelp r-help@stat.math.ethz.ch Subject: [R] question re

Re: [R] question re: summarry.lm and NA values

2006-08-15 Thread Berton Gunter
:01 AM To: rhelp Subject: [R] question re: summarry.lm and NA values Is there a way to get the following code to include NA values where the coefficients are NA? ((summary(reg))$coefficients) BAAAD! Don't so this. Use the extractor on the object: coef(reg) This suggests that you haven't