default.rmhcontrol {spatstat}R Documentation

Set Default Control Parameters for Metropolis-Hastings Algorithm.

Description

Given a fitted point process model, this command sets appropriate default values of the parameters controlling the iterative behaviour of the Metropolis-Hastings algorithm.

Usage

   default.rmhcontrol(model,...)

Arguments

model

A fitted point process model (object of class "ppm")

...

Additional arguments passed to rmhcontrol.

Details

This function sets default values of the parameters controlling the iterative behaviour of the Metropolis-Hastings simulation algorithm, using defaults that would be appropriate for the fitted point process model model.

See rmhcontrol for the full list of control parameters.

The defaults set by default.rmhcontrol are as follows. The expansion parameter expand is set to default.expand(model). The periodic distance flag periodic is set to TRUE if as.owin(model) is a rectangle, and FALSE otherwise. All other parameters revert to their defaults given in rmhcontrol.default.

Additional control parameters can be passed through the ... argument.

Value

An object of class "rmhcontrol". See rmhcontrol.

Author(s)

Adrian Baddeley Adrian.Baddeley@csiro.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner r.turner@auckland.ac.nz

See Also

rmhcontrol, ppm, default.expand

Examples

  data(cells)
  fit <- ppm(cells, ~1, Strauss(0.1))
  default.rmhcontrol(fit)

[Package spatstat version 1.25-3 Index]