homtest | R Documentation |
Conducts a Monte Carlo test of homogeneity for a locally-fitted Poisson or Gibbs point process model.
homtest(X, ..., nsim = 19, test = c("residuals", "score", "taylor", "likelihood"), locations = c("coarse", "fine", "split"), ladjust = NULL, use.fft = NULL, simul = NULL, verbose = TRUE, Xname = NULL)
X |
A point pattern (object of class |
... |
Additional arguments passed to |
nsim |
Number of simulations for the Monte Carlo test. |
test |
The local test statistic to be used:
either |
locations,use.fft |
Arguments passed to |
ladjust |
Optional argument passed to |
simul |
Optional information that determines
how to simulate the realisations from the null hypothesis.
An expression in the R language (that will be evaluated
|
verbose |
Logical value indicating whether to print progress reports. |
Xname |
Optional character string name for the dataset |
This function performs a Monte Carlo test of the null hypothesis of homogeneity (i.e.\ constant parameter values) for the locally-fitted Poisson point process or Gibbs point process specified by the arguments.
The type of test is controlled by the argument test
.
test="likelihood"
:
the locally fitted model is computed as locppm(X, ...)
.
The local composite likelihood ratio test statistic of this model
is computed at each location,
and the mean of this statistic over the window is computed.
test="taylor"
:
the locally fitted model is computed as locppm(X, ...)
.
The Taylor approximation to the
local composite likelihood ratio test statistic of this model
is computed at each location,
and the mean of this statistic over the window is computed.
test="score"
:
the locally fitted model is computed as locppm(X, ...)
.
The local score test statistic of this model is computed at each location,
and the mean of this statistic over the window is computed.
method="residuals"
:
the homogeneous model is fitted as ppm(X, ...)
.
The smoothed score residuals of this model are computed at each
location, and the mean of the squared norm over the window
is computed.
The test statistic is computed for the data pattern X
and for each of nsim
simulated realisations from the
homogeneous model. The Monte Carlo p-value is computed.
An object of class "htest"
containing the test outcome.
.
To compute the test statistic only, see
homtestmap
.
## Not run: homtest(swedishpines) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.