Kruskal Wallis test using Matlab - unequal sample sizes
52 次查看(过去 30 天)
显示 更早的评论
Hi everybody,
I'm currently trying to perform Kruskal Wallis test comparing 3 groups with unequal sample size. Does anyone know if it's feasible?
In an attempt to solve the problem I tried to replace the zeros with NaN but it gives me the same results as with zeros.
Function used:
[p,tbl,stats] = kruskalwallis(x);
Best,
Eric
1 个评论
Isaac Kipkemoi
2019-11-23
Eric,
Did you get the answe this question, the suggestion by @Paul Anderson didnt help me
回答(1 个)
Paul Anderson
2017-6-1
编辑:Paul Anderson
2017-6-1
This can be done using the grouping variable option in the kruskalwallis function. See the grouping example in the function's documentation here: Kruskal Wallis - Grouping Example
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!