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

21 ビュー (過去 30 日間)
BENEDETTA
BENEDETTA 2023 年 2 月 9 日
コメント済み: BENEDETTA 2023 年 2 月 10 日
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?

回答 (1 件)

Jeff Miller
Jeff Miller 2023 年 2 月 9 日
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.

カテゴリ

Help Center および File ExchangeHypothesis Tests についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by