Filter löschen
Filter löschen

Kruskal Wallis test using Matlab - unequal sample sizes

47 Ansichten (letzte 30 Tage)
Eric
Eric am 23 Jul. 2016
Kommentiert: Isaac Kipkemoi am 23 Nov. 2019
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 Kommentar
Isaac Kipkemoi
Isaac Kipkemoi am 23 Nov. 2019
Eric,
Did you get the answe this question, the suggestion by @Paul Anderson didnt help me

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Paul Anderson
Paul Anderson am 1 Jun. 2017
Bearbeitet: Paul Anderson am 1 Jun. 2017
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

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by