***************************************************************************** * CHAPTER 1 - STATISTICS FOR BUSINESS AND ECONOMICS, 5th Edition * ***************************************************************************** * Example 1.1 - Cereal Production, p. 8 * * The SAMPLE command specifies the beginning and ending observation. The * format of the command is: * * SAMPLE beg end * * where: beg = the beginning observation * end = the ending observation * SAMPLE 1 10 * * The READ command inputs the data and assigns variable names. The format * of the READ command is: * * READ vars / options * * where: var = is a list of variable names * options = is a list of desired options * * The LIST option is used on the READ command to list all the data that has * been read. * * The Production Rate is defined as PACKAGES in the 1000s. * READ DAY PACKAGES / LIST 1 84 2 81 3 85 4 82 5 85 6 84 7 109 8 110 9 60 10 63 * * The PLOT command is used to replicate Figure 1.2. The format of the PLOT * command is: * * PLOT depvars indep / options * * where: depvars = is a list of dependent variables * indep = is the independent variable * options = a list of desired options * * The XMIN= and XMAX= specifies the desired range for the X axis. The YMIN= * and YMAX= specifies the desired range for the Y axis. The NOPRETTY= tells * SHAZAM not to attempt to make the axes pretty and just use the range of * data directly. The NOPRETTY= option must be used with the XMIN=, XMAX=, * YMIN= and YMAX= options. * * Figure 1.2 - Daily Cereal Production of Wheat Cereals * PLOT PACKAGES DAY / YMIN=0 YMAX=140 XMIN=0 XMAX=12 NOPRETTY GRAPH PACKAGES DAY * *---------------------------------------------------------------------------- STOP