Re: [R] Automatically Remove Aliased Terms from a Model

2013-10-31 Thread Thaler,Thorn,LAUSANNE,Applied Mathematics
t: Dienstag, 29. Oktober 2013 21:47 To: Thaler,Thorn,LAUSANNE,Applied Mathematics; R-Help Mailing List (r-help@r-project.org) Subject: Re: [R] Automatically Remove Aliased Terms from a Model Hi Thorn, it is not entirely clear (at least for me) what you want to accomplish. an easy and fail safe way

Re: [R] Automatically Remove Aliased Terms from a Model

2013-10-29 Thread Eik Vettorazzi
Hi Thorn, it is not entirely clear (at least for me) what you want to accomplish. an easy and fail safe way of extracting used terms in a (g)lm-object is names(model.frame(l)) if you want to extract terms to finally select a model, have a look at drop1 and/or MASS::dropterm Hth Am 28.10.2013 17:1

[R] Automatically Remove Aliased Terms from a Model

2013-10-28 Thread Thaler,Thorn,LAUSANNE,Applied Mathematics
Dear all, I am trying to implement a function which removes aliased terms from a model. The challenge I am facing is that with "alias" I get the aliased coefficients of the model, which I have to translate into the terms from the model formula. What I have tried so far: --8<---