Hi INLA group,
I am trying some experiments as fixed value of hyperprior.
I put log gamma. I know internally that log(perc)=log(tau)=(theta).
Just for the fixed case,
a) If I put the value below, does it mean prec=25?
b) Also in your case, why did you put the default value as 4?(check below). It is neither mean/mode for $theta$param (1e+00 5e-05).
f(as.numeric(spatial_ID_15),value_u1__value_d1,
constr=FALSE, model = "besag", scale.model=TRUE,
graph = graph_adjacency_2 ,
hyper=list(theta = list(prior = "loggamma",
param=c(3,.003),
initial=log(25.0),
fixed=TRUE,
scale.model=TRUE)
)
)
inla.models()$latent$besag$hyper
$theta
$theta$hyperid
[1] 8001
attr(,"inla.read.only")
[1] FALSE
$theta$name
[1] "log precision"
attr(,"inla.read.only")
[1] FALSE
$theta$
short.name[1] "prec"
attr(,"inla.read.only")
[1] FALSE
$theta$prior
[1] "loggamma"
attr(,"inla.read.only")
[1] FALSE
$theta$param
[1] 1e+00 5e-05
attr(,"inla.read.only")
[1] FALSE
$theta$initial
[1] 4
attr(,"inla.read.only")
[1] FALSE
$theta$fixed
[1] FALSE
attr(,"inla.read.only")
[1] FALSE
$theta$to.theta
function (x)
log(x)
<bytecode: 0x12c7f94a0>
<environment: 0x12c7ef660>
attr(,"inla.read.only")
[1] TRUE
$theta$from.theta
function (x)
exp(x)
<bytecode: 0x12c7f95b8>
<environment: 0x12c7ef660>
attr(,"inla.read.only")
[1] TRUE