ith value either TRUE or FALSE).
>
> Formulae can also be constructed as text strings (e.g. using
> ``paste'') and then converted
> to actual formulae using as.formula().
>
> HTH.
>
> cheers,
>
>Rolf Turner
>
>
>
>
> On 4
HTH.
cheers,
Rolf Turner
On 4/03/2008, at 11:34 AM, <[EMAIL PROTECTED]> wrote:
>> From: Matthieu Stigler <[EMAIL PROTECTED]>
>> Date: 2008/03/03 Mon PM 04:07:09 CST
>> To: r-help@r-project.org
>> Subject: [R] How to include an externa
>From: Matthieu Stigler <[EMAIL PROTECTED]>
>Date: 2008/03/03 Mon PM 04:07:09 CST
>To: r-help@r-project.org
>Subject: [R] How to include an externally defined NULL value in lm
maybe you should a<-0 unless there's special
behavior of NULL that's unknownst to me ?
Hello!
I would love to be able to include an external variable to a lm call, I
mean something:
if(TRUE)
a<-freeny.x[,4]
else
a<-NULL
lm(freeny.y~freeny.x[,-4] +a)
but it does not work with a<-NULL, whereas
lm(freeny.y~freeny.x[,-4] +NULL)
I don't understand why and did not find an a
4 matches
Mail list logo