Re: [R] Performing a glm binomial model

2009-02-07 Thread David Winsemius
In R using: formula = (ENF/TOT) ~ (VAR1 + VAR2 + VAR3 + VAR4)^2 would give you all the main effects and 2 way interactions. What do you mean by the R^2 for a binary model? It is not constructed simply by minimizing the squared distances from the 0,1 outcomes. There are analogues to R^2 (a

[R] Performing a glm binomial model

2009-02-07 Thread Alberto Maceda
Hello R-users, My first consult is that I would like to tackle the relationship between a dependent variable and four environmental factors using a glm binomial model. The problem is that I want to test the interaction between factors too and I would like to learn some way to do it automatically.