rmhcontrol(control, ...)
## S3 method for class 'default':
rmhcontrol(control=NULL, \dots, p=0.9, q=0.5, nrep=5e5,
expand=NULL, periodic=FALSE, ptypes=NULL,
fixall=FALSE, nverb=0)
"owin"
), specifying that
simulations are to be performed in a domain larger than the
original data window, then clipped to the original data window.nverb
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.
This 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 algorithm control parameters should be specified either by the
first argument control
or by the other arguments
p
, q
etc.
If control
is specified, it may be a list of parameter values
(with components named p
, q
etc,
having the same interpretation as described below)
or an object of class "rmhcontrol"
obtained by a previous
call to rmhcontrol
.
The parameters are as follows: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
rmh
,
rmhmodel
,
rmhstart
,
expand.owin
# 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