[R] Translating lm.object to SQL, C, etc function

j+rhelp@howard.fm j+rhelp at howard.fm
Sat Feb 15 04:40:03 CET 2003


On Fri, 14 Feb 2003 07:53:46 -0500, "John Fox" <jfox at mcmaster.ca> said:
> I've written replacements for the standard R contrast functions that 
> produce the kind of more easily parsed (and more readable) contrast names 
> that I think you have in mind. I intend to include these in the next 
> release of the car package for R but haven't done so yet. Since the code 
> isn't very long, I've appended it (and the .Rd documentation file to this 
> note). Note that R does separate terms in an interaction with a colon.
> 
> I hope that this does what you need.
<...>
> ##  Coefficients:
> ##          (Intercept)                  income               education
> ##              2.275753                0.003522                1.713275
> ##          type[T.prof]              type[T.wc]     income:type[T.prof]
> ##              15.351896              -33.536652               -0.002903
> ##      income:type[T.wc]  education:type[T.prof]    education:type[T.wc]
> ##              -0.002072                1.387809                4.290875

Yes, it's perfect. Thanks so much (and also thanks for your really
readable and useful book, including web appendices)!

Regards,
  Jeremy
-- 
  Jeremy Howard
  jhoward at fastmail.fm




More information about the R-help mailing list