Re: [R] How to get Greenhouse-Geisser epsilons from anova?

2008-12-10 Thread Skotara
Dear John, thank you for the kind offer! Sorry, I just made a mistake anywhere I can not trace back, now it works as you described it. Thank you again! Dear Peter, thank you for the information, I did not know about the quotation marks. It indeed works using G-G Pr! The SPSS and R output for

Re: [R] How to get Greenhouse-Geisser epsilons from anova?

2008-12-10 Thread John Fox
Dear Nils, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Skotara Sent: December-10-08 9:22 AM To: Peter Dalgaard Cc: r-help@r-project.org; John Fox Subject: Re: [R] How to get Greenhouse-Geisser epsilons from anova? Dear John, thank you

Re: [R] How to get Greenhouse-Geisser epsilons from anova?

2008-12-09 Thread Skotara
Dear John and Peter, thank you both very much for your help! Everything works fine now! John, Anova also works very fine. Thank you very much! However, if I had more than 2 levels for the between factor the same thing as mentioned occured. The degrees of freedom showed that Anova calculated it

Re: [R] How to get Greenhouse-Geisser epsilons from anova?

2008-12-09 Thread John Fox
Dear Nils, -Original Message- From: Skotara [mailto:[EMAIL PROTECTED] Sent: December-09-08 12:21 PM To: John Fox Cc: 'Peter Dalgaard'; r-help@r-project.org Subject: Re: [R] How to get Greenhouse-Geisser epsilons from anova? Dear John and Peter, thank you both very much

Re: [R] How to get Greenhouse-Geisser epsilons from anova?

2008-12-08 Thread Skotara
Thank you for your help! Sorry, for bothering you again.. I still have trouble combining within and between subject factors. Interactions of within factors and D having only 2 levels work well. How can I get the main effect of D? I have tried anova(mlmfitD, mlmfit). With D having 3 levels I

Re: [R] How to get Greenhouse-Geisser epsilons from anova?

2008-12-08 Thread Peter Dalgaard
Skotara wrote: Thank you for your help! Sorry, for bothering you again.. I still have trouble combining within and between subject factors. Interactions of within factors and D having only 2 levels work well. How can I get the main effect of D? I have tried anova(mlmfitD, mlmfit). With D

Re: [R] How to get Greenhouse-Geisser epsilons from anova?

2008-12-08 Thread John Fox
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Dalgaard Sent: December-08-08 1:11 PM To: Skotara Cc: r-help@r-project.org Subject: Re: [R] How to get Greenhouse-Geisser epsilons from anova? Skotara wrote: Thank you for your help! Sorry

Re: [R] How to get Greenhouse-Geisser epsilons from anova?

2008-12-06 Thread Nils Skotara
Thank you, this helped me a lot! All within effects and interactions work well! Sorry, but I still could not get how to include the between factor.. If I include D with 2 levels, then myma is 24 by 28. (another 12 by 28 for the second group of subjects.) mlmfitD - lm(myma~D) is no problem, but

Re: [R] How to get Greenhouse-Geisser epsilons from anova?

2008-12-06 Thread Peter Dalgaard
Nils Skotara wrote: Thank you, this helped me a lot! All within effects and interactions work well! Sorry, but I still could not get how to include the between factor.. If I include D with 2 levels, then myma is 24 by 28. (another 12 by 28 for the second group of subjects.) mlmfitD - lm(myma~D)

Re: [R] How to get Greenhouse-Geisser epsilons from anova?

2008-12-05 Thread Skotara
Dear Mr. Daalgard. thank you very much for your reply, it helped me to progress a bit. The following works fine: dd - expand.grid(C = 1:7, B= c(r, l), A= c(c, f)) myma - as.matrix(myma) #myma is a 12 by 28 list mlmfit - lm(myma~1) mlmfit0 - update(mlmfit, ~0) anova(mlmfit, mlmfit0, X= ~C+B, M =

Re: [R] How to get Greenhouse-Geisser epsilons from anova?

2008-12-05 Thread John Fox
To: Peter Dalgaard; r-help@r-project.org Subject: Re: [R] How to get Greenhouse-Geisser epsilons from anova? Dear Mr. Daalgard. thank you very much for your reply, it helped me to progress a bit. The following works fine: dd - expand.grid(C = 1:7, B= c(r, l), A= c(c, f)) myma

Re: [R] How to get Greenhouse-Geisser epsilons from anova?

2008-12-05 Thread Peter Dalgaard
Skotara wrote: Dear Mr. Daalgard. thank you very much for your reply, it helped me to progress a bit. The following works fine: dd - expand.grid(C = 1:7, B= c(r, l), A= c(c, f)) myma - as.matrix(myma) #myma is a 12 by 28 list mlmfit - lm(myma~1) mlmfit0 - update(mlmfit, ~0) anova(mlmfit,

[R] How to get Greenhouse-Geisser epsilons from anova?

2008-12-04 Thread Skotara
Dear all, I apologize for my basic question. I try to calculate an anova for repeated measurements with 3 factors (A,B,C) having 2, 2, and 7 levels. or with an additional fourth between subjects factor D. Everything works fine using aov(val ~ A*B*C + Error(subject/ (A*B*C) ) ) or aov(val ~

Re: [R] How to get Greenhouse-Geisser epsilons from anova?

2008-12-04 Thread Peter Dalgaard
Skotara wrote: Dear all, I apologize for my basic question. I try to calculate an anova for repeated measurements with 3 factors (A,B,C) having 2, 2, and 7 levels. or with an additional fourth between subjects factor D. Everything works fine using aov(val ~ A*B*C + Error(subject/ (A*B*C) ) )