Tests whether a fitted point process model on a network involves “marks” attached to the points.
## S3 method for class 'lppm' is.marked(X, ...)
Fitted point process model on a linear networ
(object of class
“Marks” are observations attached to each point of a point pattern.
For example the
chicago dataset contains
the locations of crimes, each crime location
being marked by the type of crime.
X is a fitted point process model on a network
(an object of class
"lppm") typically obtained
by fitting a model to point pattern data using
This function returns
TRUE if the original data
(to which the model
X was fitted) were a marked point pattern.
Note that this is not the same as testing whether the model involves terms that depend on the marks (i.e. whether the fitted model ignores the marks in the data). See the Examples for a trick to do this.
If this function returns
TRUE, the implications are
(for example) that
any simulation of this model will require simulation of random marks
as well as random point locations.
Logical value, equal to
X is a model that was fitted to a marked point pattern dataset.
fit <- lppm(chicago ~ x) is.marked(fit) ## result is TRUE, i.e. the data are marked ## To check whether the model involves marks: "marks" %in% spatstat.utils::variablesinformula(formula(fit))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.