model.frame.ppm | R Documentation |
Given a fitted point process model, this function returns a data frame containing all the variables needed to fit the model using the Berman-Turner device.
## S3 method for class 'ppm'
model.frame(formula, ...)
## S3 method for class 'kppm'
model.frame(formula, ...)
## S3 method for class 'dppm'
model.frame(formula, ...)
## S3 method for class 'slrm'
model.frame(formula, ...)
formula |
A fitted point process model.
An object of class |
... |
Additional arguments passed to |
The function model.frame
is generic.
These functions are method for model.frame
for fitted point process models (objects of class "ppm"
,
"kppm"
, "slrm"
,
or "dppm"
).
The first argument should be a fitted point process model;
it has to be named formula
for consistency with the generic
function.
The result is a data frame containing all the variables used in
fitting the model. The data frame has one row for each quadrature point
used in fitting the model. The quadrature scheme can be extracted using
quad.ppm
.
A data.frame
containing all the variables used in the
fitted model, plus additional variables specified in ...
.
It has an additional attribute "terms"
containing information
about the model formula. For details see model.frame.glm
.
.
Baddeley, A. and Turner, R. (2000) Practical maximum pseudolikelihood for spatial point patterns. Australian and New Zealand Journal of Statistics 42, 283–322.
ppm
,
kppm
,
dppm
,
slrm
,
model.frame
,
model.matrix.ppm
fit <- ppm(cells ~ x)
mf <- model.frame(fit)
kfit <- kppm(redwood ~ x, "Thomas")
kmf <- model.frame(kfit)
sfit <- slrm(cells ~ x)
smf <- model.frame(sfit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.