Description Usage Arguments Details See Also
A global envelope test including simulations from a point process model.
1 2 3 4 5 6 | global_envelope_with_sims(X, nsim, simfun = NULL, simfun.arg = NULL, ...,
test = c("rank", "qdir", "st"), alpha = 0.05,
alternative = c("two.sided", "less", "greater"), r_min = NULL,
r_max = NULL, take_residual = FALSE, lexo = TRUE, ties = NULL,
save.envelope = TRUE, savefuns = FALSE, savepatterns = FALSE,
verbose = FALSE)
|
X |
An object containing point pattern data. A point pattern (object of class "ppp")
or a fitted point process model (object of class "ppm" or "kppm"). See
|
nsim |
The number of simulations. |
simfun |
A function for generating simulations from the null model. If given, this function
is called by replicate(n=nsim, simfun(simfun.param), simplify=FALSE) to make nsim simulations.
The function should return an |
simfun.arg |
The parameter to be passed to simfun. The function simfun should handle with the structure of simfun.param. |
... |
Additional parameters passed to |
test |
Either "rank" for the |
alpha |
The significance level. The 100(1-alpha)% global envelope will be calculated. |
alternative |
A character string specifying the alternative hypothesis. Must be one of the following: "two.sided" (default), "less" or "greater" for "rank". Relevant only for the rank test (otherwise ignored). |
r_min |
The minimum radius to include in the test. |
r_max |
The maximum radius to include in the test. Note: cannot be larger than r-values used
in calculating functions by |
take_residual |
If (needed for visual reasons only) the theoretical or mean behaviour of the
test function is reduced from the test functions. If TRUE, then: If |
lexo |
Logical, whether or not to use lexical ordering for calculation of the p-value.
in the rank envelope test. See |
ties |
Ties method to be passed to |
save.envelope |
Logical flag indicating whether to save all envelope test results. |
savefuns |
Logical flag indicating whether to save all the simulated function values.
See |
savepatterns |
Logical flag indicating whether to save all the simulated point patterns.
See |
verbose |
Logical flag indicating whether to print progress reports during the simulations.
See |
Details of the tests are given in rank_envelope
(rank envelope test),
qdir_envelope
(directional quantile envelope test) and st_envelope
(studentized envelope test).
The specification of X is important here:
if simfun is not provided, the function envelope
is used to generate
simulations under the null hypothesis and to calculate the test functions (specified in the
arguments ...) and then
If X is a point pattern, the null hypothesis is CSR.
If X is a fitted model, the null hypothesis is that model.
If simfun is provided, then the null model is the one simulated by this given function,
and X is expected to be a point pattern of ppp
object, for which data
pattern and simulations envelope
calculates the test statistics.
envelope
(that is used to perform simulations),
rank_envelope
, qdir_envelope
, st_envelope
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.