Skip to content

Commit da4d0be

Browse files
committed
Improved README for lppm
1 parent 5c058fc commit da4d0be

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

man/lppm.Rd

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,51 @@ lppm(X, ...)
7373
to such a point pattern;
7474
and the right hand side \code{trend} is an expression specifying the
7575
spatial trend of the model.
76+
Variable names which appear in the \code{trend} can be
77+
\itemize{
78+
\item the name of an object in the current environment
79+
\item the name of an entry in the list \code{covariates}
80+
\item one of the reserved names \code{x}, \code{y}, \code{seg},
81+
\code{tp} representing respectively the spatial coordinates \eqn{x}
82+
and \eqn{y}, and the local coordinates \code{seg} (line segment
83+
index) and \code{tp} (relative position along the segment).
84+
}
85+
Covariates which are objects in the environment or entries in the
86+
list \code{covariates} may have any of the following formats:
87+
\describe{
88+
\item{a pixel image,}{
89+
giving the values of a spatial covariate at
90+
a fine grid of locations. It should be an object of
91+
class \code{"im"}, see \code{\link[spatstat.geom]{im.object}},
92+
or class \code{"linim"}, see \code{\link[spatstat.linnet]{linim}}.
93+
}
94+
\item{a function,}{
95+
which can be evaluated
96+
at any location on the network to obtain the value of the spatial
97+
covariate.
98+
This may be a function of class \code{"linfun"} (function on a
99+
network) or \code{"funxy"} (function in two dimensional space).
100+
Alternatively it may be any function in the \R language:
101+
the first two arguments of the function should be the
102+
Cartesian coordinates \eqn{x} and \eqn{y}. The function may have
103+
additional arguments include \code{seg}, \code{tp} and
104+
\code{marks} and other arguments.
105+
}
106+
\item{a window,}{
107+
interpreted as a logical variable
108+
which is \code{TRUE} inside the window and \code{FALSE} outside
109+
it. This should be an object of class \code{"owin"}.
110+
}
111+
\item{a tessellation,}{
112+
interpreted as a factor covariate.
113+
For each spatial location, the factor value indicates
114+
which tile of the tessellation it belongs to.
115+
This should be an object of class \code{"tess"} or \code{"lintess"}.
116+
}
117+
\item{a single number,}{indicating a covariate that is
118+
constant in this dataset.
119+
}
120+
}
76121

77122
Other arguments \code{...} are passed from \code{lppm.formula}
78123
to \code{lppm.lpp} and from \code{lppm.lpp} to \code{\link[spatstat.model]{ppm}}.

0 commit comments

Comments
 (0)