inference.control: inference.control function

Description Usage Arguments Value See Also

Description

A function to control inferential settings. This function is used to set parameters for more advanced use of spatsurv.

Usage

1
2
3
4
5
inference.control(gridded = FALSE, cellwidth = NULL, ext = 2,
  imputation = NULL, optimcontrol = NULL, hessian = FALSE,
  plotcal = FALSE, timeonlyMCMC = FALSE, nugget = FALSE,
  savenugget = FALSE, split = 0.5, logUsigma_priormean = 0,
  logUsigma_priorsd = 0.5)

Arguments

gridded

logical. Whether to perform compuation on a grid. Default is FALSE.

cellwidth

the width of computational cells to use

ext

integer the number of times to extend the computational grid by in order to perform compuitation. The default is 2.

imputation

for polygonal data, an optional model for inference at the sub-polygonal level, see function imputationModel

optimcontrol

a list of optional arguments to be passed to optim for non-spatial models

hessian

whether to return a numerical hessian. Set this to TRUE for non-spatial models. equal to the number of parameters of the baseline hazard

plotcal

logical, whether to produce plots of the MCMC calibration process, this is a technical option and should onyl be set to TRUE if poor mixing is evident (the printed h is low), then it is also useful to use a graphics device with multiple plotting windows.

timeonlyMCMC

logical, whether to only time the MCMC part of the algorithm, or whether to include in the reported running time the time taken to calibrate the method (default)

nugget

whether to include a nugget effect in the estimation. Note that only the mean and variance of the nugget effect is returned.

savenugget

whether to save the MCMC chain for the nugget effect

split

how to split the spatial and nugget proposal variance as a the proportion of variance assigned to the spatial effect apriori. Default is 0.5

logUsigma_priormean

prior mean for log standard deviation of nugget effect

logUsigma_priorsd

prior sd for log standard deviation of nugget effect

Value

returns parameters to be used in the function survspat

See Also

survspat


bentaylor1/spatsurv documentation built on May 12, 2019, 3:02 p.m.