How can I change the significance level of either kruskalwallis or ranksum test?
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Star Strider
2017-12-2
The kruskalwallis doesn’t have that option. However, it outputs the p-value, so you can use it to make your own decisions.
2 个评论
Star Strider
2017-12-2
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’.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!