>
> model1 = inla(formula1, family="coxph",
> data=crc, verbose=TRUE, quantiles = c(0.025,
> 0.1, 0.9, 0.975),
> control.inla=list(diagonal=10000),
>
> control.hazard=list(model="rw1",n.intervals=20,param=c(1,0.001)))
I just want to add the not that the 'diagonal=10000' option really
*change* the model, as its add the constant 'diagonal' to all the
diagonal elements of the precision matrix for the latent field. So its
ment as an emergency option really...
it means that, in order to get the the correct results, you'll need to
rerun the model with diagonal=0, starting from the (better) initial
values found as the mode in the first run. so the correct call is
model1 = inla(formula1, family="coxph",
data=crc, verbose=TRUE, quantiles = c(0.025, 0.1,
0.9, 0.975),
control.inla=list(diagonal=10000),
## these options make it runs faster as we're
only interested
## in the mode
control.inla = list(int.strategy = "eb",
strategy = "gaussian"),
##
control.hazard=list(model="rw1",n.intervals=20,param=c(1,0.001)))
## and then we restart it... adding the initial values as the mode of
'model1'.
model1 = inla(formula1, family="coxph",
data=crc, verbose=TRUE, quantiles = c(0.025,
0.1, 0.9, 0.975),
control.inla=list(diagonal=0),
##
## saying, use the mode in model1, and restart
the optimization
control.mode = list( result = model1, restart =
TRUE),
##
control.hazard=list(model="rw1",n.intervals=20,param=c(1,0.001)))
>
> An additional update is that a problem appeared in the spatial
> function of the geosurvival model. I found the graph file doesn't work
> while using 0 to be the first code of the location. I used to read a
> statement in one of the tutorial documentations which mentioned that
> the graph file also works with starting location code = 0. So far I
> haven't figure out why it doesn't work in my graph file. After
> writing an additional SAS program to convert the graph file from
> starting location = 0 to starting location = 1, the INLA() finally ran
> well.
the story about the 0-based graphs: this feature is a left-over
from old times. a graph can be 0-based but the R-code must be
1-based!
to convert a 0-based graph into a 1-based graph, you can do:
inla.write.graph( inla.read.graph("old.graph"), "new.graph")
H
--
Håvard Rue
Department of Mathematical Sciences
Norwegian University of Science and Technology
N-7491 Trondheim, Norway
Voice: +47-7359-3533 URL : http://www.math.ntnu.no/~hrue
Fax : +47-7359-3524 Email: havar...@math.ntnu.no
This message was created in a Microsoft-free computing environment.