[R] GLMM and data manipulation (2nd try)

2008-05-02 Thread Giovanni Petris
Hello, I posted a question yesterday but I got no replies, so I'll try to reformulate it in a more concise way. I have the following data, summarizing approval ratings on two different surveys for a random sample of 1600 individuals: ## Example: Ratings of prime minister (Agresti, Table

Re: [R] GLMM and data manipulation (2nd try)

2008-05-02 Thread Andrew Robinson
On Fri, May 02, 2008 at 03:06:31PM -0500, Giovanni Petris wrote: Hello, I posted a question yesterday but I got no replies, so I'll try to reformulate it in a more concise way. I have the following data, summarizing approval ratings on two different surveys for a random sample of 1600

Re: [R] GLMM and data manipulation (2nd try)

2008-05-02 Thread Andrew Robinson
On Sat, May 03, 2008 at 06:43:22AM +1000, Andrew Robinson wrote: On Fri, May 02, 2008 at 03:06:31PM -0500, Giovanni Petris wrote: Hello, I posted a question yesterday but I got no replies, so I'll try to reformulate it in a more concise way. I have the following data,

Re: [R] GLMM and data manipulation (2nd try)

2008-05-02 Thread Giovanni Petris
Andrew, Thank you for your reply. In fact, I had a way of unrolling the table but I think yours look much nicer - much readable to me. Below is what I did, but I was afraid I would scare my students away from R! approval - factor(c(Approve, Disapprove), +levels =