perfect. many thanks.
-Original Message-
From: Gabor Grothendieck [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 19, 2008 1:26 PM
To: Sung, Iyue
Cc: r-help@r-project.org
Subject: Re: [R] Extracting original variable list from lm object
Try:
all.vars(formula(my.model))
On Feb 19
Try:
all.vars(formula(my.model))
On Feb 19, 2008 1:10 PM, Sung, Iyue <[EMAIL PROTECTED]> wrote:
> Fellow R users,
>
> I have an lm object, from which I would like to extract the list of
> original variables.
> The problem I have is the formula includes functions of the covariates.
>
> I tried us
Fellow R users,
I have an lm object, from which I would like to extract the list of
original variables.
The problem I have is the formula includes functions of the covariates.
I tried using "attr", but the result stores the transformed variable
name. For example:
> my.model<-lm(y ~ a + log(b +
3 matches
Mail list logo