Friedman test unreplicated complete block design error

后端 未结 6 1994
北海茫月
北海茫月 2021-01-18 15:16

I\'m having trouble running a Friedman test over my data. I\'m trying to run a Friedman test using this command:

friedman.test(mean ~ isi | expId, data=monoS         


        
6条回答
  •  逝去的感伤
    2021-01-18 15:25

    I don't get an error if I run your dataset:

       Friedman rank sum test
    
       data:  mean and isi and expId
       Friedman chi-squared = 17.9143, df = 3, p-value = 0.0004581
    

    However, you have to make sure that expId and isi are coded as factors. Run these commands:

        monoSum$expID$<-factor(monoSum$expID)
        monoSum$isi$<-factor(monoSum$isi)
    

    Then run the test again. This has worked for me with a similar problem.

提交回复
热议问题