# is.hybrid

##### Test Whether Object is a Hybrid

Tests where a point process model or point process interaction is a hybrid of several interactions.

##### Usage

`is.hybrid(x)`## S3 method for class 'ppm':
is.hybrid(x)

## S3 method for class 'interact':
is.hybrid(x)

##### Arguments

- x
- A point process model (object of class
`"ppm"`

) or a point process interaction structure (object of class`"interact"`

).

##### Details

A *hybrid* (Baddeley, Turner, Mateu and Bevan, 2012)
is a point process model created by combining two or more
point process models, or an interpoint interaction created by combining
two or more interpoint interactions.
The function `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`

.

##### Value

`TRUE`

if the object is a hybrid, and`FALSE`

otherwise.

##### References

Baddeley, A., Turner, R., Mateu, J. and Bevan, A. (2013)
Hybrids of Gibbs point process models and their implementation.
*Journal of Statistical Software* **55**:11, 1--43.

##### See Also

##### Examples

```
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)
```

*Documentation reproduced from package spatstat, version 1.42-2, License: GPL (>= 2)*