N+M gives only the main effects, N:M gives only the interaction, and G*M gives the main effects and the interaction.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Birgit Lemcke > Sent: Friday, May 16, 2008 11:27 AM > To: R Hilfe > Subject: [R] glm model syntax > > > Hello R users! > > What is the difference between > > glm(A~N+M) > glm(A~N:M) > glm(A~N*M) > > Thanks in advance. > > Birgit > > Birgit Lemcke > Institut für Systematische Botanik > Zollikerstrasse 107 > CH-8008 Zürich > Switzerland > Ph: +41 (0)44 634 8351 > [EMAIL PROTECTED] > > 175 Jahre UZH > «staunen.erleben.begreifen. Naturwissenschaft zum Anfassen.» > MNF-Jubiläumsevent für gross und klein. > 19. April 2008, 10.00 Uhr bis 02.00 Uhr > Campus Irchel, Winterthurerstrasse 190, 8057 Zürich Weitere > Informationen http://www.175jahre.uzh.ch/naturwissenschaft > > ______________________________________________ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

