Re: [Rd] matching predictors and dummies

2008-07-12 Thread Jeroen Ooms
Charles C. Berry wrote: > > See > ?terms > ?terms.object > > > I am sorry but i cannot figure out how i can find out which coefficients belong to which predictors using the model$terms. If i do attributes(model$terms) i get a nice list which contains the orriginal factors and som

Re: [Rd] matching predictors and dummies

2008-07-12 Thread Mark Difford
Hi Jeroen, >> How could i use the model$terms to extract which coefficients belong to >> which factor, >> the way anova() does it? There may be a simpler ("canned") way to do it, but why don't you debug anova.lm to see how it does it? ## methods("anova") anova.lm HTH, Mark. Jeroen Ooms wrot