georamps
model fitting algorithm.ramps.control(iter = 1000, beta, sigma2.e, phi, sigma2.z, sigma2.re,
z.monitor = TRUE, file)
'param'
object of initial values and hyperparameters for the main effects coefficients. Flat priors are currently supported for these parameters. Argument is optional if no main effects appear in the model.'param'
object of initial values and hyperparameters for the measurement error variances. Inverse-gamma priors are currently supported. Argument is optional if no measurement error variances appear in the model.'param'
object of initial values and hyperparameters for the spatial correlation parameters. Uniform priors are currently supported. Argument is optional if no correlation parameters appear in the model.'param'
object of initial values and hyperparameters for the spatial variances. Inverse-gamma priors are currently supported. Argument is optional if no spatial variances appear in the model.'param'
object of initial values and hyperparameters for the random effects variances. Inverse-gamma priors are currently supported. Argument is optional if no random effects appear in the model.'param'
object of initial values for the main effects coefficients.'param'
object of initial values for the measurement error variances.'param'
object of initial values for the spatial correlation parameters.'param'
object of initial values for the spatial variances.'param'
object of initial values for the random effects variances.monitor
containing a logical monitoring indicator for the latent spatial parameters or a data frame of coordinates at which to monitor the parameters.params
and z
character strings specifying external files to which to save monitored model and spatial parameters.sigma2
and phi
arguments via the param
function. These are used in the MCMC algorithm as factors by which the widths of the slice sampling windows are multiplied. Separate tuning parameters may be set for each of the arguments. However, only the minimum of user-specified sigma2
tuning parameters is used in the sampling of those model parameters.georamps
,
param
ctrl <- ramps.control(
iter = seq(1, 100, by = 2),
beta = param(rep(0, 2), "flat"),
sigma2.e = param(rep(1, 2), "invgamma", shape = 2.0, scale = 0.1),
phi = param(10, "uniform", min = 0, max = 100, tuning = 0.5),
sigma2.z = param(1, "invgamma", shape = 2.0, scale = 0.1),
file = c("params.txt", "z.txt")
)
Run the code above in your browser using DataLab