rmhstart(start, ...)
## S3 method for class 'default':
rmhstart(start=NULL, \dots, n.start=NULL, x.start=NULL)
x.start
.n.start
."rmhstart"
, which is essentially
a list of parameters describing the initial point pattern
and (optionally) the initial state of the random number generator.
There is a print
method for this class, which prints
a sensible description of the initial state.rmh
.
This function rmhstart
creates a full description of the initial state of the
Metropolis-Hastings algorithm,
including possibly the initial state of the random number generator,
for use in a subsequent call to rmh
. It also
checks that the initial state is valid. The initial state should be specified either by the
first argument start
or by the other arguments
n.start
, x.start
etc.
If start
is a list, then it should have components named
n.start
or x.start
,
with the same interpretation as described below.
The arguments are:
[object Object],[object Object]
The parameters n.start
and x.start
are
incompatible.
rmh
,
rmhcontrol
,
rmhmodel
# 30 random points
a <- rmhstart(n.start=30)
# a particular point pattern
data(cells)
b <- rmhstart(x.start=cells)
Run the code above in your browser using DataLab