Re: [R] How to solve: Error with Anova {car} due to "deficient rank" ?

2010-05-06 Thread Tal Galili
Hello Peter, Thank you very much for the fresh approach! I will go with it to the researcher. Thanks again, Tal Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.bi

Re: [R] How to solve: Error with Anova {car} due to "deficient rank" ?

2010-05-06 Thread Tal Galili
Thank you for the detailed answer Joris, First - I would like to nominate your final remark: > Sorry to break it to you, but this is a classic case of "analysis died due > to a lack of usable data". (In response to a question on why Anova {car} broke with the Error SSP matrix is apparently of

Re: [R] How to solve: Error with Anova {car} due to "deficient rank" ?

2010-05-06 Thread peter dalgaard
On May 6, 2010, at 1:42 PM, Tal Galili wrote: > Hi Joris, > Thank you for taking the time to answer. > > This data is of a test done for 39 subjects (from 2 groups) over 12 weeks. > And the questions I would like to answer are: > 1) Did the test results changed over time? > 2) Did the group effe

Re: [R] How to solve: Error with Anova {car} due to "deficient rank" ?

2010-05-06 Thread Joris Meys
Hi Tal, a few remarks: - The way you did it, week is essentially a nominal variable. The analysis you use completely ignores the sequence of the weeks. You have to take that one into account as well. - The method you use tells me you're attempting some kind of repeated-measures anova in R. Actual

Re: [R] How to solve: Error with Anova {car} due to "deficient rank" ?

2010-05-06 Thread Tal Galili
Hi Joris, Thank you for taking the time to answer. This data is of a test done for 39 subjects (from 2 groups) over 12 weeks. And the questions I would like to answer are: 1) Did the test results changed over time? 2) Did the group effected the test results? 3) Did the effect of time differ for ea

Re: [R] How to solve: Error with Anova {car} due to "deficient rank" ?

2010-05-06 Thread Joris Meys
Hi Tal, The problem is not the analysis, but the data. You have 2 weeks that only have a value 4, and 31 out of 39 cases that only have a value 4. Your residual matrix is thus malformed, and has a lower rank than the amount of weeks minus 1. This makes it impossible to do the calculations in the A

[R] How to solve: Error with Anova {car} due to "deficient rank" ?

2010-05-06 Thread Tal Galili
Hello all, I am getting the following error: Error in linear.hypothesis.mlm(mod, hyp.matrix.1, SSPE = SSPE, V = V, : The error SSP matrix is apparently of deficient rank = 7 < 11 After running: mod.ok <- lm(as.matrix(dat[,-1]) ~ DC, data=dat) (av.ok <- Anova(mod.ok, idata=idata, idesign=~wee