| ISE.envelope | R Documentation |
Compute integrated squared error of each of the simulated function estimates in an envelope object.
ISE.envelope(object, theo, domain, dimension=2)
object |
Object of class |
theo |
Function in the R language that evaluates the true (theoretically expected) value of the spatial summary function. |
domain |
Numeric vector of length 2 specifying the limits of the domain of integration for the integrated squared error. |
dimension |
Integer (either 1 or 2) specifying whether to calculate the one-dimensional or two-dimensional integral of squared error. |
The first argument should be an object of class "envelope"
and should contain the simulated function estimates (i.e. it should
have been computed using envelope
with savefuns=TRUE).
The simulated function estimates are extracted from object,
and their squared error from the true value theo
is computed pointwise. The squared errors are integrated over the
interval specified by domain, giving one value of integrated
squared error for each simulated function estimate. These values
are returned as a numerical vector.
A numeric vector of length equal to the number of simulated functions.
, \martinH and \tilman.
bias.envelope,
MISE.envelope.
E <- envelope(cells, Kest, correction="translate", nsim=20, savefuns=TRUE)
theoK <- function(r) { pi * r^2 }
dom <- c(0, 0.1)
ISE.envelope(E, theoK, dom)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.