On Fri, 2014-05-16 at 20:12 -0700, Víctor Hugo Gutiérrez Vélez wrote:
> Hello,
>
> I am running the model below as a function of two variables and
> structured and unstructured spatial effects. The model consists of a
> sub-sample of about 352.000 observations. Observations are repeated
> measures of around 44000 zones.
>
> function=a + b + f(id, model="bym", graph=g).
>
> cheap.mod= inla(formula, data=DataSubset,family="binomial,
> verbose=TRUE,
> control.fixed=list(prec.intercept=0.1,
> expand.factor.strategy='inla'),
> control.inla=list(diagonal = 10000,
> strategy="gaussian", int.strategy="eb"),
> control.predictor = list(compute=TRUE),
> control.compute=list(dic=TRUE, cpo=TRUE))
>
> I want to start with a very simple specification using the cheap mode
> in INLA so I can get quick rough results from different model
> specifications before running a definite model. However I am starting
> to run into the errors that appear at the end of this message.
Hi,
your problem is that you graph has many disconnected subgraphs, 6696, I
guess, and that this is transferred into a linear constraint for each of
those, and this require to much storage and the program crash.
try to add f(id,..., adjust.for.con.comp=FALSE), remove diagonal=10000,
and let me know if this goes through. (you have a huge model...).
> 2. Eventually I am hoping to run a way more complex model given the
> nature of my data. The model would include nested random effects of
> zones within regions, temporal effects and possibly non-linear
> relationships with one of the covariates. I also would like to
> evetually expand the model to the whole dataset (1'200.000
> observations, 150,000 zones). Am I being naive by hoping that I can
> run such a large model? I am working on an imac with 32 Gb memory. The
> function would be something like:
>
> function=f(a, model="rw2") + b + f(id, model="bym", graph=g,
> group=regions, control.group=list(model="iid")) + f(year.struct,
> model= "ar1") + f(year, model= "iid").
the main problem here would be the size. is there any way to try to
aggregate some of the data?
Best
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
Mobile:
+47-9260-0021 Email:
havar...@math.ntnu.no
R-INLA:
www.r-inla.org