[R] Neuman-Keuls

2007-07-18 Thread elyakhlifi mustapha
hello, I have programmed this function to calculate the Neuman-Keuls test but I have a problem the function return an empty list and I don't know why. summary(fm1) E - sqrt((summary(fm1)[[1]][Residuals,Mean Sq])/length(LR)) lst - list() lst1 - list() lst2 - list() NK - function (x) { if

Re: [R] Neuman-Keuls

2007-07-18 Thread Mark Wardle
Hi Elyakhlifi, I'm not a statistics expert and so can't intuit what your code is doing easily. I also can't just run the code as supplied, as it uses variables and data structures you haven't specified. From a coding perspective, there are several issues though that will almost certainly make a