Hello INLA group,
Sorry to be a bother.
I am a student. My major is GIS. Presently, I am researching on analyze the influencing factors of a particular crime event (spatial data). I am learning to use spatial eco model in INLA. However, I faced many problems, I also checked a lot of information but can not solve these problems, hoping to get help.
Next is my steps and the problems I faced
1) I first tried the linear model (LM and GLM) and lagsarlm and other sp model (spdep packages). the spaeco model result was better than the linear model, with Moran index of the residual falling from 0.4 to 0.07, rrme from 2k to 1k, We think this conclusion is appropriate
2) Next we tried inla about model=’slm’, but it annoys us very much. When we use the default parameters or small changes or even delete some para setting, always produce a variety of errors on the verbose.
For example we use
zero.variance = list(prec=list(initial = 25, fixed=TRUE))
#SLM model
slm_1<-inla( SMS_all ~ -1 +
f(idx, model="slm",
args.slm=list(rho.min = rho.min, rho.max = rho.max, W=W, X=mmatrix,
Q.beta=Q.beta),
hyper=hyper.slm),
data=inputdata, family="gaussian",
control.family = list(hyper=zero.variance),
control.compute=list(dic=TRUE, cpo=TRUE),
control.inla=list(print.joint.hyper=TRUE, strategy = "gaussian"),
verbose = TRUE
then we get error
Error in inla.inlaprogram.has.crashed() :
The inla-program exited with an error. Unless you interupted it yourself, please rerun with verbose=TRUE and check the output carefully.
the verbose always be
file: smtp-taucs.c hgid: 3aa3dd2925a9 date: Fri Jan 26 17:55:19 2018 +0300
Function: GMRFLib_factorise_sparse_matrix_TAUCS(), Line: 859, Thread: 0
Fail to factorize Q. I will try to fix it...
When we give the parameters to a larger
changes: initial = -50 and control.inla=list(cmin=-20),
although the results can be obtained, but the results are very very poor and stupid (rho is completely different from larsarlm, Moran index of the residual is much bigger), there also be many message in verbose.
Fail to factorize Q. I will try to fix it...
Although the algorithm is different, but according to the papers
as I know, the results of inla and larsarml should not be similar? We have
tried the parameters that we know how to change, and we can never get similar
result.
3) We also tried inlabma R-packages, basically the same as inla error. If you do not modify the parameters then got error; modify the parameters then got the result is very stupid
4) Our final research goal is to applied the "slm" model to the nbinomial distribution. So we also tried it. Although the results can be obtained, but the results also do not meet expectations. The regression indicator is worse than glm.nb and even larsarlm. However, in our expectation, the result of the regression considering both negative binomial distribution and spatial effect should not be better?
The process is also quite slow, and eventually get crushed... May I ask for any suggestions to tackle these problem? If anyone can give advice or help give pointers about how th change the parameters, we will be very grateful. We have attached our shpfile(not necessary), Rdata and Rcode, data sms_all as dependent variable, other column as independent variable
The parameters we have tried to change including strategy="", cmin=-100~0, zero.variance=()
Sincerely yours,
Li Xuliang
--
You received this message because you are subscribed to the Google Groups "R-inla discussion group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to r-inla-discussion-group+unsub...@googlegroups.com.
To post to this group, send email to r-inla-discussion-group@googlegroups.com.
Visit this group at https://groups.google.com/group/r-inla-discussion-group.
For more options, visit https://groups.google.com/d/optout.
To post to this group, send email to r-inla-disc...@googlegroups.com.
You are right. Our data is crime count data, so we would like to try to combine the spatial lag model with negative binomial regression (dependent variables are more in line with negative binomial distribution, we have already pass some math test). Because of this, we did not want to normalize the dependent variable in the past, as we thought that may be some missing, but then we will try your suggestion.
it is ture that if we can not compare with the general spatial econometric model, we may not be able to explain that the combination of speco and negative binomial models is better than the result of considering only one of them