Re: [R] Creating a vector of categories

2010-03-26 Thread Christoffer Karlsson
Thanks a ton guys for your help! Saved me a boat load of time and helped me develop a much better method of doing these things than I had in the past. The method I ended up using was to cut up my counts and aggregating my data as suggested by Petr. Thanks! Chris On Fri, Mar 26, 2010 at 12:05 PM,

[R] Creating a vector of categories

2010-03-26 Thread Christoffer Karlsson
Hi, I have a column in a data frame looking something like: $sex $language $count male english 0 male english 0 female english 32 male spanish 154 female english 11 female norweigan 7 and so on. What I want to do is to order these in to categories, for instance one category where coun

Re: [R] Log linear model - Showing non-deviation form in glm()

2010-03-23 Thread Christoffer Karlsson
0" and "1-10" it will now instead show "0" as significant with the same coeff as for "1-10" in the original order. The assoc plot still showed only "1-10" to be significant though. Getting confused, so any help would be very much appreciated ;) Chris

[R] Log linear model - Showing non-deviation form in glm()

2010-03-23 Thread Christoffer Karlsson
Hey, Whenever I set up a log linear model using glm(Y~. , data=data, family=poisson) I get the parameters in the form of deviation from the first cell kombination. I find this to be hard to interpret when I for instance want to know if there is a difference between two factors in the first catego