Using ranksum function
3 次查看(过去 30 天)
显示 更早的评论
I have a distribution which is not normal and i want to use wilcoxon rank test to test if the median is =0;if the observations are in vector X can i run the test this way: [p,h]=ranksum(X,0)
0 个评论
回答(2 个)
Oleg Komarov
2011-5-14
p = signrank(x) performs a two-sided signed rank test of the null hypothesis that data in the vector x comes from a continuous, symmetric distribution with zero median, against the alternative that the distribution does not have zero median. The p value of the test is returned in p.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Hypothesis Tests 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!