Learn R Programming

spatsurv (version 0.9-11)

getparranges: getparranges function

Description

A function to extract parameter ranges for creating a grid on which to evaluate the log-posterior, used in calibrating the MCMC. This function is not intended for general use.

Usage

getparranges(priors, leneta, mult = 1.96)

Arguments

priors
an object of class mcmcPriors
leneta
the length of eta passed to the function
mult
defaults to 1.96 so the grid formed will be mean plus/minus 1.96 times the standard deviation

Value

  • an appropriate range used to calibrate the MCMC: the mean of the prior for eta plus/minus 1.96 times the standard deviation