inference.control | R Documentation |
A function to control inferential settings. This function is used to set parameters for more advanced use of spatsurv.
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,
nis = NULL,
olinfo = NULL
)
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 |
nis |
list of cell counts, each element being a matrix, with attributes "x" and "y" giving grid centroids in x and y directions. Used to impute locations of aggregated data:. |
olinfo |
to be supplied with nis, if continuous inference from aggregated data is required |
returns parameters to be used in the function survspat
survspat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.