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
option measure() not allowed r(198)Hi, I am a newbie to using Stata and Meta-analysis. When I entered "metabias logor selogor, begg" or…
Tabulating or listing distinct values for multiple variablesHi, I want to tabulate or list the distinct or unique values of "stcode" and "avg" variables. The d…
duration of employment spells by personal idHi! I would like to calculate duration of low wage employment (dummy 0/1) for each individual in my…
invalid name J error r(198);Good afternoon guys, I am very new at Stata and i was trying to learn a code below and it give me er…
invalid name error r(198);Good afternoon guys, I am very new at Stata and i was trying to learn a code below and it give me er…
Subscribe to:
Post Comments (Atom)
0 Response to Spmatrix command and its memory need
Post a Comment