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 on April 23, and its replacement, statalist.org is already up and running.


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

st: Append connectivity matrix for TSCS


From   Severin Keller <severinkeller@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Append connectivity matrix for TSCS
Date   Wed, 19 Oct 2011 20:16:03 +0200

Hello listers

I would like to calculate a spatial regression model using "spatreg".
I have a dataset with 47 countries over a period of 13 years.
Currently I'm working on the connectivity matrix (w) (or adjacency matrix so to say), which is binary. The connectivity criterion is the fact that two countries share the same official language.

The problem I have now is that the w I have has the size 47x47. Though what I need is one 611x611 (47*13) in order to introduce the time dimension.
The criterion has no variance at all over time, so this facilitates the whole thing a bit I guess.
My idea would be to "inflate" the matrix and fill the newly generated cells with the values of the "mother cells" originating from the original w. Unfortunately I have no idea if that's possible and if so, how. 

If anyone would have a solution for this it would be greatly appreciated since I'm getting a little desperate.

Many thanks in advance

Severin 
University of Zurich
*
*   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