Agriculture Reference
In-Depth Information
Table 2.2 Fixed format data of rice yields
14.2523.5483.11410.914
23.4632.7202.7898.972
33.2282.7972.8608.885
44.1533.6723.73811.563
53.6722.7812.7889.241
63.3372.8032.9369.076
73.4983.7252.6279.850
83.2223.1422.9229.286
Source: Gomez, K. A., and A. A. Gomez. 1984. Statistical
procedures for agricultural research, 2nd ed. New
York: John Wiley & Sons, p. 77. With permission.
Figure 2.8 Importing data in a fixed format dialog box on a Windows computer. Note that the
dictionary can be used with this command as well.
variety numbers. The next three columns consist of four characters
each and represent each of three replications. For example, in the first
row the grain yields are 4.252, 3.548, and 3.114. The last column is
the total for the three replications, which in the first row is 10.914.
Knowing this makes it easy to import these data into Stata.
To import these data, select the Text data in fixed format under the
Import submenu, under the File menu (Figure 2.8).
Select the Specifications: button and enter the following: var 1 rep1
2-6 rep2 7-11 rep3 12-16 total 17-22. Then select the Browse… but-
ton and select the riceyield.txt file. Stata defaults to a .raw file exten-
sion, thus this file may appear dimmed until you enable the .txt file
 
Search WWH ::




Custom Search