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

st: Matrix transformation

From   "Susan Olivia" <>
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

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. 


*   For searches and help try:

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