Stata Technical Bulletin
an22 Stata for IBM RS/6000 workstation
Ted Anderson, CRC, FAX 310-393-7551
Also among the new ports is Stata for the RISC Station/6000, IBM’s Unix-based workstation. This port is complete and is
shipping now. Pricing is the same as for Stata on all other Unix platforms.
There is little to say about this port because Stata/Unix is Stata/Unix. For instance, the IBM RS/6000 uses X Windows and
Stata uses its standard X-window driver to support the RS/6000. Congratulations are due mainly to IBM for supporting the X
Window standard and all the rest of the Unix standards.
crc13 Short describes, finding variables, and codebooks
We have implemented three new commands related to describe: ds, Iookfor, and codebook. Two of these commands
are useful interactively—ds and Iookfor. Now that (Intercooled and Unix) Stata allow up to 2,047 variables in a data set,
finding the variable you want can be difficult.
ds simply lists the variable names in a compact format:
. ds fips |
hhsamp |
hhlθtl9 |
hh20t29 |
hh30t39 |
hh40t49 |
hh50txx |
medhhinc |
medfinc |
famsamp |
femfam |
rnkhhinc |
mincpc |
povfam |
povfamf |
povper |
povperd Cgstaxes |
povchld |
povchldd |
genrev |
igrev |
igrevfs |
cgtaxes |
Cgptaxes |
The syntax for ds is ds {vaιiist∖.
Iookfor helps in finding variables:
. Iookfor tax
23. cgtaxes |
long |
7.10.0g |
Taxes of city govzt |
24. Cgptaxes |
long |
7.10.0g |
Property taxes of city govzt |
25. Cgstaxes |
long |
7.10.0g |
Sales taxes of city govzt |
lookfor median | |||
8. medhhinc |
long |
7.10.0g |
Median hsehld income 1979 |
9. medfinc |
long |
7.10.0g |
Median family money income |
12. rnkhhinc |
int |
%8.0g |
Rank of median hsehld income |
The syntax for Iookfor is look for string {string [...]]. Iookfor searches for string, ignoring case, within the variable names
and labels. Thus, ‘lookfor median’ found rnkhhinc because the word median was in the variable label. If multiple strings
are specified, variable names or labels containing any of the strings are listed.
codebook examines the variable names, labels, and data to produce a “code book” describing the data.
. codebook, mv
fips---------------------------------------------------------state∕place code
type : numeric (long)
range: [10060,560050] units: 1
unique values: 956 coded missing: O / 956
mean: 256495
std. dev: 156998
percentiles: 107. 257. 507. 757. 907.
61462 120426 252848 391360 482530
division ------------------------------------------------------ Census Division
type: numeric (int)
label: division
range: [1,9] units: 1
unique values: 9 coded missing: O / 956
tabulation:
Freq.
69
97
206
78
115
46
89
61
195
Numeric
1
2
3
4
5
6
7
8
9
Label
N. Eng.
Mid Atl
E.N.C.
W.N.C.
S. Atl.
E.S.C.
W.S.C.
Mountain
Pacific