Closed idblr closed 4 years ago
The error message is self-explanatory: ppm
is not yet implemented for marked point patterns other than multitype point patterns (i.e. where the marks
are a factor).
However, for your purposes, you could simply create an unmarked point pattern which has duplicated points with the multiplicity specified by the freq
vector:
n <- npoints(bei)
freq <- rpois(n, 3)
ind <- rep(seq_len(n), freq)
beibei <- bei[ind]
ppm(beibei ~ grad+elev, data=bei.extra)
Note that the argument covariates
is out of date in ppm
.
Thanks, @baddstats, great to know there is a workaround for integer marks! Are there plans to implement ppm
for numeric marked point patterns?
My goal is to examine a marked ppp where, for example, instead of individual trees, the locations are tree stands and we have a second numeric mark for the frequency of trees at each point-location:
However, I receive an error when running a marked point pattern in
ppm()