fixef.mppm | R Documentation |
Given a point process model fitted to a list of point patterns,
extract the fixed effects of the model.
A method for fixef
.
## S3 method for class 'mppm'
fixef(object, ...)
object |
A fitted point process model (an object of class |
... |
Ignored. |
This is a method for the generic function fixef
.
The argument object
must be a fitted point process model
(object of class "mppm"
) produced by the
fitting algorithm mppm
). This represents a
point process model that has been fitted
to a list of several point pattern datasets. See mppm
for information.
This function extracts the coefficients of the fixed effects of the model.
A numeric vector of coefficients.
Adrian Baddeley, Ida-Maria Sintorn and Leanne Bischoff. Implemented in spatstat by \spatstatAuthors.
coef.mppm
H <- hyperframe(Y = waterstriders)
# Tweak data to exaggerate differences
H$Y[[1]] <- rthin(H$Y[[1]], 0.3)
m1 <- mppm(Y ~ id, data=H, Strauss(7))
fixef(m1)
m2 <- mppm(Y ~ 1, random=~1|id, data=H, Strauss(7))
fixef(m2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.