residuals.rppm | R Documentation |
Given a point process model that was fitted to a point pattern by recursive partitioning (regression tree) methods, compute the residual measure.
## S3 method for class 'rppm'
residuals(object,
type=c("raw", "inverse", "Pearson"),
...)
object |
The fitted point process model (an object of class |
type |
String (partially matched) indicating the type of residuals to be calculated. |
... |
Ignored. |
This function computes the residual measure for a point process model that was fitted to point pattern data by recursive partitioning of the covariates.
The argument object
must be a fitted model object
of class "rppm"
). Such objects are
created by the fitting algorithm rppm
.
The type of residual is chosen by the argument type
.
A measure (object of class "msr"
).
.
Baddeley, A., Turner, R., \Moller, J. and Hazelton, M. (2005) Residual analysis for spatial point processes. Journal of the Royal Statistical Society, Series B 67, 617–666.
Baddeley, A., \Moller, J. and Pakes, A.G. (2008) Properties of residuals for spatial point processes. Annals of the Institute of Statistical Mathematics 60, 627–649.
residuals.ppm
fit <- rppm(bei ~ elev + grad, data=bei.extra)
res <- residuals(fit)
plot(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.