Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: spmat matrix size issues with panel data

From   Tatyana Deryugina <>
Subject   st: spmat matrix size issues with panel data
Date   Sun, 24 Jul 2011 11:01:38 -0500

I'm trying to estimate spatial standard errors for a panel data set
(county-by-year) using spmat/spreg. When I try to create the spatial
weights matrix using one observation per county (since the distances
between them don't change over time) and then run the regression,
spreg complains that the id variable (county-by-year) does not match
the id variable in the matrix (county). However, if I try to create
spatial weights using the county-year observations, I run into matrix
size constraints - the max is 11,000 and I have over 30,000

Does anyone know of a workaround to this? Ideally, I would define the
weights based on county-level observations, then expand them onto
county-year observations.


Tatyana Deryugina

Lecturer, Department of Finance
University of Illinois, Urbana-Champaign
(925) 349 - 8999 (cell)
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index