Learn R Programming

spatsurv (version 0.9-11)

getOptCellwidth: getOptCellwidth function

Description

A function to compute an optimal cellwidth close to an initial suggestion. This maximises the efficiency of the MCMC algorithm when in the control argument of the function survspat, the option gridded is set to TRUE

Usage

getOptCellwidth(dat, cellwidth, ext = 2, plot = TRUE)

Arguments

dat
any spatial data object whose bounding box can be computed using the function bbox.
cellwidth
an initial suggested cellwidth
ext
the extension parameter for the FFT transform, set to 2 by default
plot
whether to plot the grid and data to illustrate the optimal grid

Value

  • the optimum cell width