is.hybrid(x)## S3 method for class 'ppm':
is.hybrid(x)
## S3 method for class 'interact':
is.hybrid(x)
"ppm"
)
or a point process interaction structure
(object of class "interact"
).TRUE
if the object is a hybrid, and FALSE
otherwise.is.hybrid
is generic, with methods for
point process models (objects of class "ppm"
)
and point process interactions
(objects of class "interact"
).
These functions return TRUE
if the object x
is a hybrid,
and FALSE
if it is not a hybrid. Hybrids of two or more interpoint interactions
are created by the function Hybrid
.
Such a hybrid interaction can then be fitted to point pattern data
using ppm
.
Hybrid
S <- Strauss(0.1)
is.hybrid(S)
H <- Hybrid(Strauss(0.1), Geyer(0.2, 3))
is.hybrid(H)
data(redwood)
fit <- ppm(redwood, ~1, H)
is.hybrid(fit)
Run the code above in your browser using DataLab