Kruskal Wallis test using Matlab - unequal sample sizes

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

Eric,
Did you get the answe this question, the suggestion by @Paul Anderson didnt help me

댓글을 달려면 로그인하십시오.

답변 (1개)

Paul Anderson
Paul Anderson 2017년 6월 1일
편집: Paul Anderson 2017년 6월 1일

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

질문:

2016년 7월 23일

댓글:

2019년 11월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by