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
Building time windows from years, starting from most recent yearDear all, I have some panel data containing countries and years. I need to build three-year time wi…
Removing duplicate words from a string variableI have a variable with a row of ICD codes. Some of them are repeated One registration looks like thi…
Do I need to check for heteroscedasticity in mediation analysis?Hi everyone, I am conducting a mediation analysis using the ml_mediation command on Stata which by …
Assigning preferred IDs to to District Names of a large Panel DatasetHello, I have year-wise data files which have household level data on wide-ranging variables. The pr…
Variable assigning number to dates within periodsHi. I have a dataset where I have registered observations on specific dates within a different peri…
Subscribe to:
Post Comments (Atom)
0 Response to Spmatrix command and its memory need
Post a Comment