How can I perform wilcoxon Test with paired samples and vectors of differente sizes?

11 vues (au cours des 30 derniers jours)
BENEDETTA
BENEDETTA le 9 Fév 2023
Commenté : BENEDETTA le 10 Fév 2023
Hello everyone, I need to perform a wilcoxon test with dependent samples, but the vectors containing the samples have different sizes.
What function can I use to implement this?
"signrank" predicts vectors of equal size
"ranksum" applies with independent samples
Am I wrong?

Réponses (1)

Jeff Miller
Jeff Miller le 9 Fév 2023
The Wilcoxon test is for data that come in pairs, so the vectors must be the same size. If you are just missing one score or the other for a few pairs, leave those pairs out (they tell you nothing anyway) and run signrank on the remaining pairs. If that is not the situation, you probably need to explain a bit more about your dependent samples to get any advice.

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by