Re: [R] glm model syntax

2008-05-17 Thread Birgit Lemcke
Hilfe Subject: Re: [R] glm model syntax G'day Harold, On Fri, 16 May 2008 11:43:32 -0400 "Doran, Harold" <[EMAIL PROTECTED]> wrote: N+M gives only the main effects, N:M gives only the interaction, and G*M gives the main effects and the interaction. I guess this begs the q

Re: [R] glm model syntax

2008-05-16 Thread Doran, Harold
~ as.numeric(N):as.numeric(M), dat) Then the latter two are different, but only under the coercion to numeric. > -Original Message- > From: Berwin A Turlach [mailto:[EMAIL PROTECTED] > Sent: Friday, May 16, 2008 12:27 PM > To: Doran, Harold > Cc: Birgit Lemcke; R Hilfe > Subject:

Re: [R] glm model syntax

2008-05-16 Thread Berwin A Turlach
G'day Harold, On Fri, 16 May 2008 11:43:32 -0400 "Doran, Harold" <[EMAIL PROTECTED]> wrote: > N+M gives only the main effects, N:M gives only the interaction, and > G*M gives the main effects and the interaction. I guess this begs the question what you mean with "N:M gives only the interaction"

Re: [R] glm model syntax

2008-05-16 Thread Doran, Harold
e > 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

[R] glm model syntax

2008-05-16 Thread Birgit Lemcke
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. Naturwi