Re: [R] lmer with nested/nonnested groupings?

2006-01-15 Thread Spencer Graves
RSiteSearch(lmer nested) produced 85 hits, the first of which looks to me like it would answer your question (http://finzi.psych.upenn.edu/R/Rhelp02a/archive/61571.html): Have you tried replacing state with region:state something like the following: lmer (y ~ black*female + (1 |

[R] lmer with nested/nonnested groupings?

2006-01-09 Thread Andrew Gelman
I'm trying to figure out how to use lmer to fit models with factors that have some nesting and some non-nested groupings. For example, in this paper: http://www.stat.columbia.edu/~gelman/research/published/parkgelmanbafumi.pdf we have a logistic regression of survey respondents' political