How can I perform wilcoxon Test with paired samples and vectors of differente sizes?
22 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
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 Exchange 中查找有关 Hypothesis Tests 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!