## S3 method for class 'ppm':
model.frame(formula, ...)
"ppm"
).model.frame.glm
.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
.model.frame
is generic.
This function is a method for model.frame
for fitted point process models (objects of class "ppm"
). 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
.
ppm
,
model.frame
,
model.matrix.ppm
data(cells)
fit <- ppm(cells, ~x)
mf <- model.frame(fit)
Run the code above in your browser using DataLab