Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Append connectivity matrix for TSCS
From
Severin Keller <[email protected]>
To
[email protected]
Subject
Re: st: Append connectivity matrix for TSCS
Date
Tue, 31 Jan 2012 13:02:00 +0100
Better late than never: Many thanks Kit, it worked out fine with the Kronecker product! Also your book (econometrics) was an important reference for me when getting to know stata.
Thanks for to everyone providing help on the listserver to beginners like me.
On 19.10.2011, at 21:20, Christopher Baum wrote:
> <>
> 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.
>
>
> Smells like a Kronecker (direct matrix) product to me. Mata does Kronecker products.
>
> Kit
>
> Kit Baum | Boston College Economics and DIW Berlin | http://ideas.repec.org/e/pba1.html
> An Introduction to Stata Programming | http://www.stata-press.com/books/isp.html
> An Introduction to Modern Econometrics Using Stata | http://www.stata-press.com/books/imeus.html
>
>
> *
> * 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/
*
* 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/