Dear All,
I am using Stata 16. I try to run spatial regressions with sp commands. I am using an economic spatial weight matrix with 38000 X 38000 dimensions. The matrix is in a separate dta file and I am using "spmatrix fromdata" command to load it to Stata for spatial regressions. Although only 20% of the matrix is full of non-zero elements, it still requires a huge amount of memory and processing time. I think that with that command, Stata also considers the zero elements as a matrix element and it does not work with a sparse matrix, am I right? This is why the memory needs are big.
Do you have suggestions for me to decrease the memory needs? or is it possible to define the matrix as a sparse one so that it only stores the non-zero elements?
Your suggestions are very valuable for me.
Thank you in advance
Sevgi
Related Posts with Spmatrix command and its memory need
Can I take log and lag on my independent variables in a regression?Hello, Please can someone answer me if it is possible to take log and lag (both at the same time) on…
Stata compatabilityApologies for what is probably a very basic question - am new user! I have started doing quite a lot…
Interpreting the intercept in the random-effects modelConsider the model yit = a + bXit + ci + eit Using a fixed effect model, the constant term a canno…
Multilevel modelling within Time Series Analysis of Cross-Sectional dataHi, I'm trying to model person within household within a Time Series of Cross-sectional Panel data.…
different count problems within variablesHi there! The forum already helped me a great deal (thx especially to Nick Cox!). However I am now …
Subscribe to:
Post Comments (Atom)
0 Response to Spmatrix command and its memory need
Post a Comment