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, is already up and running.

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

st: Nearstat competitor count

From   Edward Watkinson <>
Subject   st: Nearstat competitor count
Date   Fri, 19 Apr 2013 10:51:18 +0100

Dear Statalist,

Please help. I have a list of latitude and longitude co-ordinates (the head offices of company) and I want to find the number of head offices and branches of OTHER companies within 1km around  each. I have been using the netstat module but I cant think of a way of excluding a companies own branches when doing the counting.

The datastructure is as follows at the moment, the first dataset ha a Unique CompanyId (Head offices) but the second has multiple CompanyIds, one for each branch.

CompanyId_____lat_____long        CompanyId____HeadAndBranchLat___HeadAndBranchLong

Thanks in advance,
*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index