Re: [R] R question - combine values

2009-02-25 Thread markleeds
oops, then i guess i should not have sent the recode suggestion. choonhong: I only sent it as an example of how to recode your factor. I didn't mean to imply ( nor did i even give it much thought ) that what you're doing is statistically/philosophically correct. I'm a friend but I think what D

Re: [R] R question - combine values

2009-02-25 Thread markleeds
Hi: John Fox's recode function in his car package provides a convenient way for doing what you need. I don't know what your factor is specifically but below is mostly taken out of the help for "recode" and shows how to take a factor and recode it to make it a new factor. you can apply that for

Re: [R] R question - combine values

2009-02-25 Thread David Winsemius
You don't. And even if you do get someone to tell you how, you may still not legitimately lower your degrees of freedom. Friends don't let friends use stepwise approaches to regression analysis. -- David Winsemius On Feb 25, 2009, at 10:33 PM, choonhong ang wrote: The district a is the b

[R] R question - combine values

2009-02-25 Thread choonhong ang
The district a is the baseline and we observe the difference between District a & b is not significant, we can choose to combine these 2 values. How to write code to combine these 2 value ? > m1=glm(Claims~District+Group+Age+log(Holders),fami ly=poisson,data=mydata) > summary(m1) Call: glm(formul