The spatial domain is partitioned into n.space bins in each coordinate direction
(yielding n.space^2 spatial cells), and the temporal domain is partitioned into
n.time intervals. Bin boundaries are defined using empirical quantiles of the
observed coordinates, with the first/last boundaries fixed to the provided spatial and
temporal windows.
Events falling outside s.region or t.region are ignored (with a warning).
If the data contain many ties, quantile-based boundaries may coincide; in that case reduce
n.space/n.time or jitter the coordinates slightly.
This implementation uses chisq.test on the contingency table of space--time counts.
If expected counts are very small, the chi-squared approximation may be poor; in that case consider
using a Monte Carlo approach (e.g., block permutation) as implemented in chi2.test.