ttestmap | R Documentation |
Perform a local t
-test for the presence of a covariate effect
in a locally fitted Poisson or Gibbs point process model.
ttestmap(object, term, ...,
method = c("exact", "hessian", "taylor"),
grid = FALSE,
ngrid = NULL, grideps = NULL,
verbose = TRUE)
object |
Locally fitted Poisson or Gibbs point process model
(object of class |
term |
Term to be dropped from the model. A character string matching a term in the model formula |
... |
Ignored. |
method |
Choice of method to be used to evaluate the |
grid |
Logical. If |
ngrid |
Number of grid points (in each axis direction)
for the coarse grid. Incompatible with |
grideps |
Spacing (horizontal and vertical) between grid points
for the coarse grid. Incompatible with |
verbose |
Logical value indicating whether to print progress reports. |
The argument object
should be a locally-fitted
Poisson or Gibbs point process model (object of class
"locppm"
created by locppm
).
This function computes the local t
test statistic
for the test that a particular covariate effect in the model is zero.
This is described in Baddeley (2016, sections 3 and 5).
Object of class "ssf"
.
.
locppm
fit <- with(copper,
locppm(Points, ~D, covariates=list(D=distfun(Lines)), nd=c(7,15)))
plot(ttestmap(fit, "D"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.