StatsKSTest error message

Hi all,

I'm doing StatsKSTest for comparison of data distributions. My data set has NO normal distributions. The number of the data is between 500-2000. Usually the test runs well but sometimes i have an error message: NaNs are not allowed in this operation and I couldn't figure out what was the problem in these case.
I run the test command bellow:
StatsKSTest/ALPH=0.01/T=0 srcwave_q,distwave_m
I attach an example file, containing data, which has the error message and couldn't run the KS test.

Thanks for your help,
12911006_sign.pxp (152.95 KB)
Hello Marti,

Both waves in question include NaNs. The first includes 1045 NaNs and the second includes 958 NaNs. You are getting the error message because the KS test does not support input waves that contain NaN values.

If you are content with running the test on the two waves with the NaN values removed, you can use WaveTransform with the keyword zapNaNs prior to running the KS test.

A.G.
WaveMetrics, Inc.
Thanks a lot! I managed to run the test.

Marti

Igor wrote:
Hello Marti,

Both waves in question include NaNs. The first includes 1045 NaNs and the second includes 958 NaNs. You are getting the error message because the KS test does not support input waves that contain NaN values.

If you are content with running the test on the two waves with the NaN values removed, you can use WaveTransform with the keyword zapNaNs prior to running the KS test.

A.G.
WaveMetrics, Inc.