Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Matrix transformation


From   "Susan Olivia" <[email protected]>
To   [email protected]
Subject   st: Matrix transformation
Date   Fri, 03 Apr 2009 10:52:38 -0700

Dear all,

I would like to transform a say 4272 x 3 matrix (this matrix
basically tells us the distance between each pairs of
observation) onto 1068 x 1068. 

In MATLAB, this can be transformed using the following
command: 

load GIS_4NN.txt;
W4NN = sparse(GIS_4NN(:,1), GIS_4NN(:,2), GIS_4NN(:,3));

Is there any equivalent command like the above in STATA?

Any tips on this much appreciated. 

Thanks,

Susan
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index