Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: adjacency matrix from neighbors for sppack


From   László Sándor <sandorl@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: adjacency matrix from neighbors for sppack
Date   Wed, 20 Apr 2011 19:39:24 -0400

Hi all,

I am using Stata 11.2 MP on Mac and Unix. I would like to use the
-sppack- package for social network analysis, but the -spmat-
documentation seems to be incomplete and/or still not usable with
social network data.
(econweb.umd.edu/~prucha/Papers/WP_spmat_2011.pdf)

I have IDs of friends for each individual as an observation
(variables: friend1-friend10). I would like to repeat basically this
exercise, but for -spmat-:
http://www.ats.ucla.edu/stat/stata/code/adj_matrix.htm

It would be great to make use of the banded storage and also trust the
authors to use the matrix sensibly in -spreg- and -spivreg-.

Could anyone help me with making an adjacency (contiguity) matrix from
this data for this use?

Thanks in advance,

Laszlo


László Sándor
PhD candidate in Economics
Harvard University

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index