This command is a method for the generic function
model.matrix
. It extracts the design matrix of a
spatial point process model (class "ppm"
). More precisely, this command extracts
the design matrix of the generalised linear model associated with
a spatial point process model.
The object
must be a fitted point process model
(object of class "ppm"
) fitted to spatial point pattern data.
Such objects are produced by the model-fitting
function ppm
.
This function model.matrix.ppm
extracts the model matrix for the GLM.
The result is a matrix, with one row for every quadrature point
in the fitting procedure, and one column for every constructed
covariate in the design matrix.
The quadrature points themselves can be extracted using
quad.ppm
.