how to apply a friedman test on a database with NaN's in matlab?

4 views (last 30 days)
hello everyone, does anyone know how to apply a friedman test on a database with NaN's in matlab?
thanks!

Accepted Answer

dpb
dpb on 4 Aug 2023
The obvious would be to exclude the NaN observations but you may run into an issue that the number of replicates for each group must be the same so you'll also have to remove a matching replicate for each factor combination matching the missing one(s). The result is you may not have any data left for a given set of factors; all that would depend on the design and how many and where the NaN values are located.
IOW, it's quite possible (maybe probable?) that you simply can't apply the basic Friedman test to the dataset.
The <Skillings Mack test> described at the link is a Friedman-like test that can handle missing data but a quick search didn't find a ready MATLAB implementation and I haven't built one, either.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!