Re: [R] Help w/ variable names in loop with lmer

2015-03-29 Thread Ben Bolker
David Crow cide.edu> writes: > > Hi, R users- > > I'm estimating random effects models with cross-level interactions; I want > to interact each of a vector of level-1 variables with each of a vector of > level-2 variables. Here's the code: > > > #create data frame with le

[R] Help w/ variable names in loop with lmer

2015-03-29 Thread David Crow
Hi, R users- I'm estimating random effects models with cross-level interactions; I want to interact each of a vector of level-1 variables with each of a vector of level-2 variables. Here's the code: #create data frame with level-1 variables k <- as.data.frame(cbind(robo, asa