Re: [R] Data manipulation for random intercept GLMM

2008-05-02 Thread Greg Snow
ED] (801) 408-8111 > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Ben Bolker > Sent: Friday, May 02, 2008 7:36 AM > To: [EMAIL PROTECTED] > Subject: Re: [R] Data manipulation for random intercept GLMM > > Giovanni Petris uark.ed

Re: [R] Data manipulation for random intercept GLMM

2008-05-02 Thread Ben Bolker
Giovanni Petris uark.edu> writes: > > ## Example: Ratings of prime minister (Agresti, Table 12.1, p.494) > > rating <- matrix(c(794, 86, 150, 570), 2, 2) > > dimnames(rating) <- list(First = c("approve", "disapprove"), > + Second = c("approve", "disapprove")) > > rating >

[R] Data manipulation for random intercept GLMM

2008-05-01 Thread Giovanni Petris
Hello, I am working on some examples of GLMM for my students but I am afraid that my way of preparing a dataframe to pass to lmer will make them think that R is a very difficult and un-natural language. Here is for example a simple data set about approval ratings on two different surveys for a ra