[R] grouping explanatory variables into sets for GLMM

2014-04-03 Thread Maria Kernecker
Dear all, I am trying to run a GLMM following the procedure described by Rhodes et al. (Ch. 21) in the Zuur book Mixed effects models and extensions in R . Like in his example, I have four sets of explanatory variables: 1. Land use - 1 variable, factor (forest or agriculture) 2. Location - 1

Re: [R] grouping explanatory variables into sets for GLMM

2014-04-03 Thread Bert Gunter
Have you read An Introduction to R (or other online tutorial)? If not, please do so before posting further here. It sounds like you are missing very basic knowledge -- on factors -- which you need to learn about before proceeding. ?factor gives you the answer you seek, I believe. Cheers, Bert

Re: [R] grouping explanatory variables into sets for GLMM

2014-04-03 Thread Bert Gunter
Unless there is reason to keep the conversation private, always reply to the list. How will anyone else know that my answer wasn't satisfactory? 1. I don't intend to go through your references. A minimal reproducible example of what you wish to do and what you tried would help. 2. Have you read

Re: [R] grouping explanatory variables into sets for GLMM

2014-04-03 Thread Don McKenzie
Reading the Intro, as Bert suggests, would likely solve some of your problems. If you think about how many combinations it would take, using only one variable from each group in any one model, you would see that the number of individual models (12) is not so onerous that you couldn’t specify