I am working using the spatstat library in R.
I have several point pattern objects built from my own dataset
. The point patterns contain only the x and y coordinates of the points in them. I wanted to fit the point patterns to a Gibbs process with Strauss interaction to build a model and simulate similar point patterns. I was able to use ppm function for that purpose if I work with one point pattern at a time. I used rmhmodel function on the ppm object returned from the ppm
function. The rmhmodel
function gave me the parameters beta
, gamma
and r
, which I needed to use in rStrauss function further to simulate new point patterns. FYI, I am not using the simulate function directly as I want the new simulated point pattern to have flexible number of points that simulate does not give me.
Now, if I want to work with all the point patterns I have, I can build a hyperframe
of point patterns as described in the replicated point pattern chapter of the Baddeley
textbook, but it requires mppm function instead of ppm function to fit the model and mppm
is not working with rmhmodel
when I am trying to figure out the model parameters beta
, gamma
and r
.
How can I extract the fitted beta
, gamma
and r
from a mppm
object?