Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: tmap using core-based statistical areas


From   Julie Susan Darnell <[email protected]>
To   [email protected]
Subject   st: tmap using core-based statistical areas
Date   Mon, 26 Feb 2007 01:10:41 -0600 (CST)

J15660
Sender: [email protected]
Precedence: bulk
Reply-To: [email protected]
Errors-To: [email protected]
I=E2=80=99m having trouble executing the tmap commands. I=E2=80=99m trying =
to
create a map using core-based statistical area (CBSA) boundary
files.

First I converted shape and database files from the Census
using the following syntax:

shp2dta using "C:\Documents and
Settings\Desktop\cb99_03b_shp\cb99_03b.shp",
database(usdatabase2) coordinates(uscoordinates2) genid(id)

I renamed usdatabase2 tmap3.

Then I executed the following syntax:

use "E:\Data\tmap3.dta"
#delimit;
tmap choropleth numberoffreeclinics if validcbsa=3D=3D1 &
msa!=3D11260 & msa!=3D26180 & msa!=3D21820, id(id)
map("C:\DATA\uscoordinates2.dta")
palette(Blues) ocolor(white) osize(medium)
legbox legtitle("# of free clinics") legformat("%4.1f") legpos(5);

Note: the =E2=80=9Ctmap3.dta=E2=80=9D file is my main file and the
=E2=80=9Cuscoordinates2.dta=E2=80=9D is the boundary file. I=E2=80=99m inte=
rested in
showing only the metropolitan areas, not the micropolitan
areas of the CBSAs. The variable validcbsa excludes those
cbsa=E2=80=99s that are designated neither as metropolitan nor
division areas.

I don=E2=80=99t receive any error messages but when the graph is
produced only the areas around the edges of the United States
appear. Parts of FL, WA, OR, MI, and ME and the lower SE of
the United States appear. The entire middle of the country is
blank.

Any ideas about what might be causing this problem and how I
can fix it?

Thank you!!

Julie Darnell

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index