P-value using ranksum function

10 ビュー (過去 30 日間)
Matlab
Matlab 2017 年 7 月 23 日
コメント済み: Star Strider 2017 年 7 月 24 日
I want to use ranksum function to the following data in A1 but p value appear NAN why?

回答 (1 件)

Star Strider
Star Strider 2017 年 7 月 23 日
All your values in the ‘A1.xls’ file are zero.
That will be a problem for ranksum.
D = xlsread('Matlab A1.xls');
Dmin = min(D)
Dmax = max(D)
Dinf = D(~isfinite(D))
Dmin =
0 0 0 0 0 0
Dmax =
0 0 0 0 0 0
Dinf =
0×1 empty double column vector
  2 件のコメント
Matlab
Matlab 2017 年 7 月 24 日
What do you mean that is a problem in ranksum ? And how can I solve this problem? All values equal to zero so p value must be 1.
Star Strider
Star Strider 2017 年 7 月 24 日
Please read the documentation on the ranksum function, and consult a statistics textbook on the Wilcoxon rank sum test.

サインインしてコメントする。

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by