How can I change the significance level of either kruskalwallis or ranksum test?
    4 views (last 30 days)
  
       Show older comments
    
Hi, this is probably an easy question for rehular matlab users but leaves me standing infront of a problem: the default significance level of kruskalwallis is 0.01 and the obe for ranksum 0.05...I would like to use the same for both and found that you can change it just not "how". Where in the code do you put the alpha value in?
I typed it in like you would for a t-test but that should change the p-value depending on your significance level i.e. if the null hypothesis gets just about accepted with 0.05 it should be rejected with 0.01. However, the p-value remains the same in both cases...
Thanks!
0 Comments
Accepted Answer
  Star Strider
      
      
 on 2 Dec 2017
        The kruskalwallis doesn’t have that option. However, it outputs the p-value, so you can use it to make your own decisions.
2 Comments
  Star Strider
      
      
 on 2 Dec 2017
				It will not change the p-value. It only affects the second output (in the documentation, logical value ‘h’), that is the ‘test decision flag’.
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!