The name is absent



Stata Technical Bulletin

11


Stata would have problems, however, if the same data arrangement appeared in a dictionary file:

. type ini. det
dictionary {
int      xl

int      x2

int      x3

}

11 12 13

21 22

23 31 32 33

. infile using ini

dictionary

int     xl

int     x2

int     x3

(4 observations read)

list

xl

x2

x3

1.

11

12

13

2.

21

22

3.

4.

23

31

32

Stata’s dictionary files are the preferred form for storing and documenting raw data. The dictionary subcommands can handle
most kinds of formatted data including multi-line records and data sets without carriage returns ([5d] infile). Nonetheless, Murphy’s
law guarantees that you will occasionally confront data sets that confound Stata’s dictionary capabilities. More commonly, you
will have a data set that Stata’s dictionary features can handle but only with difficulty. Clearly, life would be simpler if all raw
data sets were rectangular, as in the first example.

I have written a C program called block that makes my life simpler. block takes an arbitrary ASCII file as input and
produces as output the same information arrayed rectangularly. The following example illustrates how to use block.

C:> type ini
11 12 13
21 22
23 31 32 33
C:> block
Name of the input file: ini
Name of the output file: outl
Number of columns: 3

Read in 9 fields from ini

Wrote out 3 rows of 3 columns to outl

C:> type outl
11 12 13
21 22 23
31 32 33

block handles non-rectangular data gracefully:

C:> type in2
11 12 13
21 22

23 31 32 33 44
C:> block

Name of the input file: in2
Name of the output file: out2
Number of columns: 3

Read in 10 fields from in2
Wrote out 3 rows of 3 columns to out2
WARNING: last row not complete.
C:> type out2
11 12 13
21 22 23
31 32 33
44



More intriguing information

1. Should Local Public Employment Services be Merged with the Local Social Benefit Administrations?
2. The name is absent
3. The name is absent
4. The Impact of Optimal Tariffs and Taxes on Agglomeration
5. Howard Gardner : the myth of Multiple Intelligences
6. Fertility in Developing Countries
7. International Financial Integration*
8. Design and investigation of scalable multicast recursive protocols for wired and wireless ad hoc networks
9. Passing the burden: corporate tax incidence in open economies
10. Education Research Gender, Education and Development - A Partially Annotated and Selective Bibliography
11. School Effectiveness in Developing Countries - A Summary of the Research Evidence
12. Regional science policy and the growth of knowledge megacentres in bioscience clusters
13. Orientation discrimination in WS 2
14. The name is absent
15. Education and Development: The Issues and the Evidence
16. The Employment Impact of Differences in Dmand and Production
17. A dynamic approach to the tendency of industries to cluster
18. Qualifying Recital: Lisa Carol Hardaway, flute
19. Spousal Labor Market Effects from Government Health Insurance: Evidence from a Veterans Affairs Expansion
20. REVITALIZING FAMILY FARM AGRICULTURE