Hi, thanks for your post, I tried what you said, and it runs, however when I
type summary ... I obtain the following: What's
happening? How can I solve it?
lmod1.lm <-
tryCatch(lm(log(dat$inaltu)~log(dat$indiam),na.action=na.fail),error=function(err){NA})
summary(lmod1.lm,
ian Ripley'
Cc: r-help@r-project.org
Subject: Re: [R] Returning NA from lm
I tried that I'm afraid. I still get values for groups with missing data. I
think na.exclude just ignores the NAs but I want it to return NA. Where one of
the values is NA.
-Original Message-
Fro
Neil Beddoe
Cc: r-help@r-project.org
Subject: Re: [R] Returning NA from lm
See ?na.exclude
On Fri, 23 Jan 2009, Neil Beddoe wrote:
> Hi.
>
> I need to apply run a regression analysis for groups of data of fixed
> length:100 As, 100 Bs, 100 Cs etc.
>
> eg
>
> x
&g
See ?na.exclude
On Fri, 23 Jan 2009, Neil Beddoe wrote:
Hi.
I need to apply run a regression analysis for groups of data of fixed
length:100 As, 100 Bs, 100 Cs etc.
eg
x
Key Value
A 1
A 21.2
A 4
A 6.5
...repeat 96 times with differing values of A
B 1
B
Hi.
I need to apply run a regression analysis for groups of data of fixed
length:100 As, 100 Bs, 100 Cs etc.
eg
x
Key Value
A 1
A 21.2
A 4
A 6.5
...repeat 96 times with differing values of A
B 1
B 2.3
B NA
B 6.5
...repeat 96 times with differi
5 matches
Mail list logo