spatstat (version 1.24-2)

pool.envelope: Pool Data from Several Envelopes

Description

Pool the simulation data from several simulation envelopes (objects of class "envelope") and compute a new envelope.

Usage

## S3 method for class 'envelope':
pool(...)

Arguments

...
Objects of class "envelope".

Value

  • An object of class "envelope".

Details

The function pool is generic. This is the method for the class "envelope" of simulation envelopes. It is used to combine the simulation data from several simulation envelopes and to compute an envelope based on the combined data.

Each of the arguments ... must be an object of class "envelope" created by running the command envelope with the argument savefuns=TRUE. This ensures that each object contains the simulated data (summary function values for the simulated point patterns) that were used to construct the envelope.

The simulated data are extracted from each object and combined. A new envelope is computed from the combined set of simulations.

Warnings or errors will be issued if the envelope objects ... appear to be incompatible. However, the code is not smart enough to decide whether it is sensible to pool the data.

To modify the envelope parameters or the type of envelope that is computed, first pool the envelope data using pool.envelope, then use envelope.envelope to modify the envelope parameters.

See Also

envelope, envelope.envelope, pool, pool.fasp

Examples

Run this code
data(cells)
   E1 <- envelope(cells, Kest, nsim=10, savefuns=TRUE)
   E2 <- envelope(cells, Kest, nsim=20, savefuns=TRUE)
   pool(E1, E2)

Run the code above in your browser using DataCamp Workspace