# This syntax is dependent on model parameters. See vignette
priors <- list("beta.Norm"=list(rep(0,p),
diag(1000,p)), "phi.Unif"=c(3/1, 3/0.1),
"sigma.sq.IG"=c(2, 2), "tau.sq.IG"=c(2, 0.1))
# Phi is spatial scale parameter, sigma.sq is spatial variance,
# tau.sq = residual
starting <- list("phi"=3/0.5, "sigma.sq"=50, "tau.sq"=1)
# variance of normal proposals for Metropolis algorithm
tuning <- list("phi"=0.1, "sigma.sq"=0.1, "tau.sq"=0.1)
m.1 <- spLM(y~X-1, coords=cords,
n.samples=10000,
cov.model = "exponential", priors=priors,
tuning=tuning, starting=starting)