rmhcontrol(...) ## S3 method for class 'default':
rmhcontrol(\dots, p=0.9, q=0.5, nrep=5e5,
expand=NULL, periodic=NULL, ptypes=NULL,
x.cond=NULL, fixall=FALSE, nverb=0,
nsave=NULL, nburn=nsave, track=FALSE)
"owin"
)
or a numerical expansion factor, specifying that
simulations are to be performed in a domain other than the
original data window, then clipped to thNULL
) indicating whether to simulate
``periodically'', i.e. identifying opposite edges of the rectangular
simulation window. A NULL
value means ``undecided.''nverb
iterationsnsave
iterations, after an initial burn-in period of
nburn
iterations."rmhcontrol"
, which is essentially
a list of parameter values for the algorithm.
There is a print
method for this class, which prints
a sensible description of the parameters chosen.rmh
,
generates simulated realisations of point process models.
The function rmhcontrol
sets up a list of parameters which control the
iterative behaviour
and termination of the Metropolis-Hastings algorithm, for use in a
subsequent call to rmh
. It also checks that the
parameters are valid. (A separate function rmhstart
determines the initial state of the algorithm,
and rmhmodel
determines the model to be simulated.)
The parameters are as follows: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
rmh
,
rmhmodel
,
rmhstart
,
rmhexpand
,
spatstat.options
# parameters given as named arguments
c1 <- rmhcontrol(p=0.3,periodic=TRUE,nrep=1e6,nverb=1e5)
# parameters given as a list
liz <- list(p=0.9, nrep=1e4)
c2 <- rmhcontrol(liz)
# parameters given in rmhcontrol object
c3 <- rmhcontrol(c1)
Run the code above in your browser using DataLab