Re: [Rd] How I() works in a formula

2014-10-03 Thread Joris Meys
Thanks Peter! That clarifies why it felt I was chasing ghosts these past days :) Thanks for the tip about coxph as well, there's some nice ideas to be discovered there. Cheers Joris On Fri, Oct 3, 2014 at 3:02 PM, peter dalgaard wrote: > > On 03 Oct 2014, at 14:32 , Joris Meys wrote: > > > Dea

Re: [Rd] How I() works in a formula

2014-10-03 Thread Lorenz, David
Joris, Basically, the I() function, as it is used in a regression model, allows the user to perform arithmetic operations on a variable that would otherwise be interpreted by the formula. It is not trapped as a special function as Error() is in aov(). There may be other applications where the c

Re: [Rd] How I() works in a formula

2014-10-03 Thread peter dalgaard
On 03 Oct 2014, at 14:32 , Joris Meys wrote: > Dear all, > > I'm updating a package regarding a new type of models, and I'm looking to > extend the formula interface with two functions (L() and R() ) for > construction of these models. I want to use as much of the formula > interface as possibl