Bookmark and Share

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: Spatial Weight Matrix to Data File Linkage for Estimating Spatial Correlation


From   Maurizio Pisati <[email protected]>
To   [email protected]
Subject   Re: st: Spatial Weight Matrix to Data File Linkage for Estimating Spatial Correlation
Date   Thu, 29 Aug 2013 14:36:04 +0200

Dear Jason,
in -spatwmat- no "hard identifier" is specified or defined: whenever you run one of the commands that use a spatial weight matrix generated (or imported) by -spatwmat-, that command assumes that the order of the locations in the "using" spatial weight matrix is exactly the same as the order of the locations in the working dataset.
Best wishes,
Maurizio


Il giorno 29/ago/2013, alle ore 01.03, Jason Bond ha scritto:

> I am trying to use the 'spat' set of commands to estimate spatial correlations.  I've defined my spatial weight matrix using 'spatwmat' where the rows and columns correspond to the sorted values of the spatial area identifier variable.  Then, when I read in the data file for which I'm attempting to estimate spatial correlations, I also sort this file by this same spatial area identifier variable.  The spatial correlation is indeed estimated, but there is not check of the hard identifier linkage between the spatial weight matrix variable and the data file.  That is, if I were to sort the data file by some other variable that was unique for each case (with a different order produced that that of the spatial area identifier variable), I could still run the spatial correlation procedure and get no error.  So I'm wondering if anyone out there knows about issues of linkage between the spatial weight matix and data files.  For instance, I don't even know for sure whether my first!
  a!
> pproach described above is the proper format for the routine...as the documentation for the program simply doesn't discuss this issue.  Thanks for any info,
> 
>  Jason
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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