Hi Murray, list,
Firstly, you can't send attachments to the list, which is why yours didn't
appear. This is to prevent viruses being spread by the list.
Nevertheless, it's still possible to make a good guess at the answer to your
question. Distance often does several chi-sq tests on the same set of data,
and the one it reports in the summary page is the last test it did.
Why does it do more than one test?
- Firstly, if you don't specify your own cutpoints for exact data, Distance
produces 3 plots and 3 sets of chi-sq tests, with a small, medium and large
number of intervals. (The exact rule for choosing number of intervals is n^
0.5, 2/3n^0.5 and 3/2n^0.5 where n is the number of observations.)
- Secondly, the method of calculating a chi-sq value is known to give a poor
approximation of the chi-sq distribution when the expected cell counts are
small (see any stats book). So, if any of the intervals has an expected
value less than 2, Distance will do a second test where it pools adjacent
intervals until all intervals have values greater than 2. It starts pooling
from the 1st interval downwards (only useful for point transect data, where
the expected count in the first interval can be small), and from the last
interval upwards. These pooled intervals are then used to perform a second
test, which is shown after the first one in the Chi-sq GOF test page of
results.
Note that, for exact data, Distance now provides Kolmogorov-Smirnov and
Craemer-von Mises tests. These are better as they avoid the need to pool
the data. Other things being equal, the uniform weighting CvM test should
be more powerful to detect departures from the fitted model than the KS
test, so that's the one I'd quote. The cosine weighting CvM should be
better at detecting departures close to 0 distance (see online help for more
on this) - but we haven't evaluated it by simulation yet, and I've found the
two to give very similar results.
Hope this helps,
- Len
--
Len Thomas
l...@mcs.st-and.ac.uk http://www.creem.st-and.ac.uk/len/
Centre for Research into Ecological and Environmental Modelling
The Observatory, University of St Andrews, Scotland KY16 9LZ
Tel. (0)1334-461801 Fax. (0)1334-461800 Secretary (0)1334-461829