home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / APPS / STATISTI / ESDISK.ZIP / EASISTAT.DOC < prev    next >
Encoding:
Text File  |  1989-02-22  |  115.2 KB  |  3,453 lines

  1.  
  2.  
  3.  
  4.  
  5.                                  EASISTAT.DOC
  6.  
  7.                     On-disk documentation for EASISTAT v. 1.01
  8.                      Copyright (C) ARC Scientific Limited 1989
  9.  
  10.  
  11.        1    BASIC INFORMATION                                   1
  12.        1.1  Limitation of liability                             1
  13.        1.2  The shareware concept                               1
  14.        1.3  User support                                        3
  15.        1.4  Specifications                                      4
  16.        1.5  Overview of the manual                              5
  17.        1.6  Other Shareware programs                            5
  18.  
  19.        2    GETTING STARTED WITH EASISTAT                       6
  20.        2.1  Demonstration                                       6
  21.        2.2  Quick start                                         7
  22.        2.3  Installation                                        8
  23.        2.4  Screen layout                                      13
  24.        2.5  Keyboard input                                     14
  25.        2.6  Description of files used by EASISTAT              14
  26.        2.7  Editing files                                      15
  27.        2.8  Drawing graphs                                     16
  28.  
  29.        3    COMMAND SYNTAX                                     17
  30.        3.1  Selecting a function                               18
  31.        3.2  Command options                                    19
  32.        3.3  Referring to rows and columns                      20
  33.        3.4  Logical expressions                                21
  34.        3.5  Arithmetic expressions                             23
  35.        3.6  Operator precedence                                24
  36.        3.7  Combining arithmetic and logical functions         25
  37.  
  38.        4    DATA MANAGEMENT FUNCTIONS                          26
  39.        4.1  Edit                                               26
  40.        4.2  Titles                                             28
  41.        4.3  List                                               28
  42.        4.4  New                                                29
  43.        4.5  Delete                                             29
  44.        4.6  Label                                              29
  45.        4.7  Format                                             30
  46.        4.8  Derive                                             30
  47.        4.9  Sort                                               31
  48.        4.10 Narrow                                             32
  49.        4.11 Widen                                              32
  50.  
  51.        5    STATISTICAL FUNCTIONS                              34
  52.        5.1  Basics                                             34
  53.        5.2  Chi-squared                                        35
  54.        5.3  Wilcoxon's rank sum                                36
  55.        5.4  Kendall's rank correlation coefficient             36
  56.        5.5  Kolmogorov-Smirnov test                            37
  57.        5.6  T test                                             37
  58.        5.7  Linear regression and correlation coefficient      38
  59.        5.8  Anova                                              39
  60.        5.9  Multiple regression                                39
  61.        5.10 Component analysis                                 40
  62.  
  63.  
  64.  
  65.  
  66.  
  67.        6    FILE MANAGEMENT FUNCTIONS                          42
  68.        6.1  Data                                               42
  69.        6.2  Output                                             43
  70.        6.3  Input                                              44
  71.        6.4  Log                                                44
  72.        6.5  Echo                                               45
  73.        6.6  Pause                                              45
  74.  
  75.        7    SPECIAL FUNCTIONS                                  46
  76.        7.1  Help                                               46
  77.        7.2  System                                             46
  78.        7.3  Screen                                             46
  79.        7.4  Arithmetic                                         46
  80.        7.5  Quit                                               47
  81.  
  82.        8    ERROR MESSAGES AND BUGS                            48
  83.        8.1  List of error messages with their meanings         48
  84.        8.2  What to do if you get an error message             48
  85.        8.3  Running out of memory                              48
  86.        8.4  Bugs and crashes                                   49
  87.  
  88.        9    ACKNOWLEDGMENTS                                    52
  89.  
  90.             Order and invoice forms on back pages
  91.  
  92.  
  93.  
  94.  
  95.  
  96.                                EASISTAT.DOC                               
  97.  
  98.       Chapter 1                BASIC INFORMATION
  99.  
  100.       This documentation is copyright. It may only be reproduced, stored or
  101.       transmitted in whole or in part by any electronic or mechanical
  102.       means in accordance with the conditions outlined below.
  103.  
  104.       The documentation contained in the file EASISTAT.DOC is an extract
  105.       from the printed manual which is available to registered users.
  106.       Where sections of the manual have been omitted the following symbol
  107.       occurs:
  108.  
  109.                                     * * * * *
  110.  
  111.       It is hoped that this incomplete documentation will be adequate to
  112.       provide some idea of the facilities available from EASISTAT, and
  113.       enable the program to be used for evaluation purposes. However
  114.       people who find the program useful are encouraged to pay for it
  115.       (current price thirty pounds inclusive of VAT and delivery charges),
  116.       thus becoming registered users. Registered users receive an up-to-
  117.       date version of the program and a full printed manual.
  118.  
  119.       1.1  LIMITATION OF LIABILITY
  120.  
  121.       It is possible that this manual or the EASISTAT program contain
  122.       errors which mean that the program does not behave in the way
  123.       described. We have attempted to the best of our ability to
  124.       eliminate such errors, but it is possible that some do exist. If the
  125.       software or manual contains significant errors rendering the program
  126.       unusable then our liability is limited to replacing defective
  127.       material that we have supplied or refunding the purchase price paid.
  128.       No liability can be accepted for anybody who has not paid for the
  129.       program and become a registered user. In any event the liability of
  130.       ARC Scientific Ltd. with respect to problems associated with the use
  131.       of this program through such errors or through other circumstances
  132.       shall not exceed the price of the program as published by ARC
  133.       Scientific Ltd. or as paid by the user, whichever is the lower. Use
  134.       of the software supplied constitutes an understanding and acceptance
  135.       of such limitation of liability.
  136.  
  137.       1.2  THE SHAREWARE CONCEPT
  138.  
  139.       One way for the programmer to distribute useful programs to users
  140.       is through ordinary retail outlets - shops and mail order companies.
  141.       This demands high overheads for many middlemen and forces up the
  142.       final price of the program to the user. In addition the user must
  143.       pay for a program before he acquires it, usually having to judge its
  144.       merits second-hand by means of a review or advertising copy.
  145.       Programs acquired in this way are normally copyright and it is
  146.       forbidden and illegal to copy them. Often they are in fact copied
  147.       illegally, forcing up prices further, or else the distributor is
  148.       obliged to apply some form of copy-protection to the program which
  149.       reduces its convenience of use.
  150.  
  151.       The Shareware alternative is to allow individuals to copy a program
  152.  
  153.                                     1                                     
  154.  
  155.  
  156.  
  157.  
  158.                                EASISTAT.DOC                               
  159.  
  160.       freely and to encourage them to pass it on to their friends and
  161.       colleagues. The program remains copyright but the holder of the
  162.       copyright grants restricted permission to individuals in possession
  163.       of the program to make copies of it. Potential users can evaluate
  164.       the program first-hand and are only then requested pay for the
  165.       program if they decide that it is worth the price asked for it.
  166.       Because of the low distribution costs the price for a Shareware
  167.       program can be many times lower than for an equivalent program sold
  168.       conventionally. No legal sanctions are applied to somebody who uses
  169.       the program without paying for it, but the success of the Shareware
  170.       concept depends on those people who do feel it is reasonable to pay
  171.       for something which they find useful. In the case of EASISTAT people
  172.       who pay for the program will be added to the list of registered
  173.       users and will receive a full printed manual, of which this on-disk
  174.       documentation is an extract.
  175.  
  176.       THE SHAREWARE AGREEMENT
  177.  
  178.       You are assumed to understand and accept the following conditions
  179.       as a condition of your possession and use of the EASISTAT program
  180.       and associated files.
  181.  
  182.       EASISTAT is distributed as a Shareware program. That means that you
  183.       are legally allowed to copy it and give copies to other people who
  184.       you think might like it - in fact you are encouraged to do so.
  185.       However please note the following points:
  186.  
  187.       1. The copyright of the program remains with ARC Scientific Limited.
  188.  
  189.       2. You must not charge more than a nominal fee for the program if you
  190.       pass it on to someone else, nor may you distribute the disk as part
  191.       of a promotional scheme.
  192.  
  193.       3. Please acknowledge the program in any publications of work for
  194.       which it was used.
  195.  
  196.       4. If you pass it on you must do so in unmodified form and the
  197.       following eight files must all be passed on together:
  198.  
  199.           EASISTAT.EXE
  200.           EASISTAT.DOC (This file)
  201.           EXAMPLE.DAT
  202.           DEMO
  203.           DEMO.BAT
  204.           READ.ME
  205.           ORDINV.PRN
  206.           PRODUCTS
  207.  
  208.       5. The printed manual is copyright and may not be reproduced or
  209.       transmitted in whole or in part without the express permission of
  210.       ARC Scientific Limited. If the disk files are passed on to another
  211.       user, they must not be accompanied by additional documentation which
  212.       could wholly or partly take the place of the printed manual.
  213.  
  214.  
  215.                                     2                                     
  216.  
  217.  
  218.  
  219.  
  220.                                EASISTAT.DOC                               
  221.  
  222.       6. Although the program may be freely copied and may be used for
  223.       evaluation purposes, anybody who thereafter continues to use it
  224.       should pay to become a registered user. Registered users will
  225.       receive an up-to-date version of the program and the full printed
  226.       manual.
  227.  
  228.       The current price to register EASISTAT is thirty pounds sterling,
  229.       which is inclusive of VAT and delivery charges in the UK and
  230.       is inclusive of shipping charges for overseas orders. The price
  231.       for orders from the US is fifty-five US dollars inclusive of
  232.       shipping. These prices are correct at time of writing, but are
  233.       liable to change without notice.
  234.  
  235.       Please address orders and enquiries about bulk discounts to:
  236.  
  237.          ARC Scientific Limited,
  238.          257 Woodstock Road,
  239.          Oxford OX2 7AE.
  240.  
  241.          Tel. 0865 310167
  242.  
  243.       Order and invoice forms are provided at the end of this
  244.       documentation.
  245.  
  246.       If you give the program and the seven other files that go with it
  247.       to someone else then please explain to them how to set the
  248.       demonstration running. If you give them a floppy disk with the
  249.       eight files on we recommend that you write on the label:
  250.  
  251.       EASISTAT Copyright (C) ARC Scientific Ltd. 1989
  252.  
  253.       Enter -     A:
  254.                   DEMO
  255.  
  256.       1.3  USER SUPPORT
  257.  
  258.       User support is limited to those people who have paid to become
  259.       registered users.
  260.  
  261.       Because of the low price of this program we are able to offer only
  262.       limited user support. If you have problems running EASISTAT then
  263.       please consult the manual carefully to see if that can help. If you
  264.       still need advice then please write with a stamped addressed
  265.       envelope to:
  266.  
  267.       EASISTAT User Support,
  268.       ARC Scientific Limited,
  269.       257 Woodstock Road,
  270.       Oxford OX2 7AE.
  271.  
  272.       We will attempt to answer your query as quickly as possible,
  273.       though we cannot guarantee to be able to do so. Please give us
  274.  
  275.  
  276.  
  277.                                     3                                     
  278.  
  279.  
  280.  
  281.  
  282.                                EASISTAT.DOC                               
  283.  
  284.       full details about the following information:
  285.  
  286.       Your DOS version number.
  287.       The version number of EASISTAT.
  288.       The type of computer and peripherals you have.
  289.       The names of any memory-resident programs.
  290.       The contents of your AUTOEXEC.BAT and CONFIG.SYS files.
  291.  
  292.       Please enclose a copy of any relevant data files and command
  293.       files on a floppy disk. We will return it.
  294.  
  295.       1.4  SPECIFICATIONS
  296.  
  297.       Almost all the statistical functions implemented in EASISTAT are as
  298.       described in Statistical Methods in Medical Research by P. Armitage
  299.       and G. Berry (2nd edition, Blackwell Scientific Publications, 1987).
  300.       The user is advised to consult this source for a detailed account of
  301.       the theoretical basis of the tests and the circumstances under which
  302.       they should be used. It is assumed that the user has at least a
  303.       basic knowledge of statistics, and only brief descriptions of the
  304.       tests will be given in this manual, which does not replace a
  305.       statistics textbook.
  306.  
  307.       The probability values given are two-tailed for tests based on the t
  308.       distribution, and one-tailed for tests based on the normal
  309.       distribution. In practice this means that sometimes you may want to
  310.       double the probability value given for some of the tests based on
  311.       the normal distribution (ie halve its significance), depending for
  312.       example on whether or not you had a prior hypothesis for the
  313.       direction of the difference. Or can you just quote the result, say
  314.       it is one-tailed and let people draw their own conclusions. The
  315.       probabilities given for the chi-squared and F distributions are the
  316.       conventional one-tailed ones, which are almost always what you want.
  317.  
  318.       EASISTAT runs on a personal computer using MS-DOS version 2.0 or
  319.       later. It requires at least 256K of memory, but will use more if
  320.       available. All data is held in memory for speed of calculations, so
  321.       the amount of data which can be processed is limited by the size of
  322.       the computer's memory. With 640K of RAM EASISTAT will accommodate
  323.       over 70,000 data points, though this figure is reduced if there are
  324.       very many rows and very few columns. The maximum length for a line
  325.       read in from a data file is 5,000 characters (not columns). The
  326.       maximum number of columns is about 1,300 and the number of rows must
  327.       not exceed about 10,000. The maximum length for command lines read
  328.       in from a file is 240 characters. Lines read from the keyboard are
  329.       limited by the screen width to 76 characters. Values are stored as
  330.       single precision floats and operations are carried out in double
  331.       precision. Values stored in a data file are only stored on disk to
  332.       the precision with which they are displayed. Multiple regression and
  333.       principal component analysis need about as much extra memory as is
  334.       occupied by the columns analysed.
  335.  
  336.       If a maths coprocessor chip is installed then EASISTAT will use it
  337.       to increase the speed of calculations. EASISTAT will run in a text
  338.  
  339.                                     4                                     
  340.  
  341.  
  342.  
  343.  
  344.                                EASISTAT.DOC                               
  345.  
  346.       window of DESQview in background or foreground and will run under
  347.       Microsoft Windows if the "Writes directly to screen option" is
  348.       selected from the PIFEDIT menu.
  349.  
  350.       1.5  OVERVIEW OF THE MANUAL
  351.  
  352.       You should begin with the next chapter on "Getting started with
  353.       EASISTAT". You will probably wish to see the demonstration if you
  354.       have not done so already, and then you should carry out the
  355.       installation procedure described. You should look through the
  356.       chapter on "Command syntax", but you will probably wish to study
  357.       this properly at a later date. Assuming that you do not already have
  358.       data which you wish to analyse you will first have to enter some
  359.       data using the EDIT function described in the chapter on "Data
  360.       management functions". When you have entered your data you will wish
  361.       to save it on disk, and this is done using the DATA SAVE function
  362.       described in the chapter on "File management functions". Then you
  363.       may try out any of the other functions described in the rest of the
  364.       documentation. As you become more familiar with EASISTAT you should
  365.       make an effort to familiarise yourself with the use of command
  366.       files, and perhaps with the more complex arithmetic and logical
  367.       functions available.
  368.  
  369.       1.6  OTHER SHAREWARE PROGRAMS
  370.  
  371.       Two other Shareware programs are recommended in their own right and
  372.       are especially useful for users of EASISTAT. PC-Write is a word
  373.       processor which can be used to edit EASISTAT's auxiliary files, and
  374.       PC-File:dB is a database which comes with a graph-drawing program
  375.       called PCG2 which can draw graphs from EASISTAT's graph files. They
  376.       are obtainable as Shareware from a number of user groups and
  377.       Shareware libraries which advertise in magazines dealing with PC's.
  378.       Both are available to members of the IBM PC User Group:
  379.  
  380.       The IBM PC User Group,
  381.       PO Box 360,
  382.       Harrow HA1 4LQ,
  383.       UK.
  384.  
  385.       Registered copies of PC-Write cost 89$ from:
  386.  
  387.       Quicksoft Inc.,
  388.       219 First Avenue N #224-BYTZ,
  389.       Seattle, WA 98109,
  390.       USA.
  391.  
  392.       Registered copies of PC-File:dB cost 89$ from:
  393.  
  394.       ButtonWare, Inc.
  395.       P.O. Box 96058
  396.       Bellevue, WA 98009,
  397.       USA.
  398.  
  399.  
  400.  
  401.                                     5                                     
  402.  
  403.  
  404.  
  405.  
  406.                                EASISTAT.DOC                               
  407.  
  408.       Chapter 2         GETTING STARTED WITH EASISTAT
  409.  
  410.       2.1  DEMONSTRATION
  411.  
  412.       If you do not want to see a demonstration of EASISTAT in action then
  413.       skip this section.
  414.  
  415.       2.1.1  Starting the demonstration
  416.  
  417.       On the disc supplied there is a special command file called DEMO
  418.       which has been written to provide a demonstration of some of
  419.       EASISTAT'S features. The demonstration lasts a few minutes. To see
  420.       it, first make sure that your computer is turned on and that you
  421.       have booted up DOS in the usual way (if you do not know how to do
  422.       this please consult your DOS manual). You should see a prompt saying
  423.       something like eg A> or B:\> or C:\DOS\>. Put the disk supplied into
  424.       the disk drive of your computer and close the door of the drive. Do
  425.       not take the disk out of the drive until the demonstration has
  426.       finished. Now type the name of that drive followed by a colon
  427.       (either A: or B:) and press the ENTER (or RETURN) key. Now type DEMO
  428.       and press the ENTER key. The demonstration should begin.
  429.  
  430.  
  431.       2.1.2  During the demonstration
  432.  
  433.       The demonstration will pause occasionally to allow you time to read
  434.       what is on the screen. When a pause occurs the following message
  435.       appears in the bottom window of the screen:
  436.  
  437.         A pause has occurred in the input command file
  438.  
  439.        'E' to end file, 'K' to use keyboard, any other key to continue
  440.  
  441.       When the message appears the computer will wait for you to press a
  442.       key before it does anything else. If you press any key except E or K
  443.       the demonstration will continue normally, and we advise you to do
  444.       this. If you press E the demonstration will finish prematurely and
  445.       you will be left with control of the EASISTAT. To find out what to
  446.       do next see the section titled "When the demonstration finishes". If
  447.       you press K then you will gain temporary control of EASISTAT and you
  448.       can issue any commands you like to it as described later in the
  449.       manual. You can then return to the demonstration at any time by
  450.       entering INPUT CLOSE.
  451.  
  452.       Sometimes the demonstration may appear to have paused but the above
  453.       message does not appear in the window. This means that EASISTAT is
  454.       busy performing a calculation which is taking a little time. The
  455.       longest takes about a minute on slower computers. Just wait and the
  456.       demonstration should proceed.
  457.  
  458.       Do not worry about the other words you see popping up in the bottom
  459.       window. These are requests by the program for new commands and
  460.       parameters, but they are supplied by the demonstration file so you
  461.       do not have to do anything.
  462.  
  463.                                     6                                     
  464.  
  465.  
  466.  
  467.  
  468.                                EASISTAT.DOC                               
  469.  
  470.  
  471.       2.1.3  When the demonstration runs the editor
  472.  
  473.       Late on in the demonstration the data editor is displayed and you are
  474.       left in control of it. For full details of how to use the editor you
  475.       can refer to the section specifically on that subject. For
  476.       demonstration purposes you may just want to move around the table a
  477.       bit using the cursor keys and changing a few numbers here and there.
  478.       The only thing you really need to know is how to leave the editor.
  479.       To do this simply press the ESCAPE key, which is usually up near the
  480.       top left of the keyboard and is marked "Esc". You will return to the
  481.       end of the demonstration.
  482.  
  483.       2.1.4  When the demonstration has finished
  484.  
  485.       At the end of the demonstration you will be put in control of
  486.       EASISTAT (if you have paid for the program then obviously you should
  487.       ignore the message asking you to do so). The rest of the manual
  488.       describes how to use EASISTAT, but for now all you need to know is
  489.       how to quit the program and return to DOS. To do this type QUIT then
  490.       press the ENTER key, then when asked if you are sure type YES and
  491.       press ENTER.
  492.  
  493.       We recommend that when you have become a bit more familiar with
  494.       EASISTAT you should study the file called DEMO carefully. You can
  495.       read it with a word processor or you can print it out on a printer
  496.       by entering PRINT DEMO when you are at the DOS prompt. It is simply
  497.       an EASISTAT command file such as you can write yourself, and it may
  498.       be very helpful for you to see the way that the commands have been
  499.       typed in the file to create the demonstration that you see.
  500.  
  501.       2.2  QUICK START
  502.  
  503.       You are advised to skip this section and move on to the section
  504.       headed "Installation". However if you can't wait and want to have a
  505.       have a go at working EASISTAT here's what you do:
  506.  
  507.       1. Make sure your computer is turned on and that you have booted up
  508.       DOS in the usual way (if you do not know how to do this please
  509.       consult your DOS manual). You should see a prompt saying something
  510.       like eg A> or B:\> or C:\DOS\>. Put the disk supplied into the disk
  511.       drive of your computer and close the door of the drive. Now type the
  512.       name of that drive followed by a colon (either A: or B:) and press
  513.       the ENTER (or RETURN) key.
  514.  
  515.       2. Type EASISTAT and press ENTER. The EASISTAT screen should appear.
  516.  
  517.       3. Press any key, and the message "Select function -" will appear in
  518.       the bottom window. In the top window a list of all the functions
  519.       available appears.
  520.  
  521.       4. Type EDIT and press ENTER. You are now looking at the data editing
  522.       screen, which is almost empty except for one column called "NEW" and
  523.       one row with a zero in it.
  524.  
  525.                                     7                                     
  526.  
  527.  
  528.  
  529.  
  530.                                EASISTAT.DOC                               
  531.  
  532.  
  533.       5. Hold down the CONTROL key (marked "Ctrl") with one finger and then
  534.       while doing so press the RIGHT ARROW key. A second column appears to
  535.       the right of the first one. Do this once or twice more if you feel
  536.       like it.
  537.  
  538.       6. Using the arrow keys you can move from column to column and then
  539.       type a number into that column. To make a new row and move down to
  540.       it press ENTER.
  541.  
  542.       7. Moving around the screen in this way type in a few numbers to get
  543.       the feel of the editor. (At this stage numbers following a decimal
  544.       point will not be displayed.) When you've filled a few rows and
  545.       columns press the escape key (marked "Esc") and you will leave the
  546.       editor. The "Select function -" message will be displayed.
  547.  
  548.       8. Type BASICS C1 then press ENTER. You will be shown the mean,
  549.       variance, etc. of the numbers you typed into the first column.
  550.  
  551.       9. Type REGRESS C1 C2 then press ENTER. You will see the correlation
  552.       coefficient and linear regression line for the first two columns.
  553.  
  554.       10. Type QUIT then press ENTER.
  555.  
  556.       11. Type YES then press ENTER.
  557.  
  558.       12. Now read the rest of the manual.
  559.  
  560.       2.3  INSTALLATION
  561.  
  562.       Installing EASISTAT is very simple. You just need to copy the files
  563.       supplied to wherever you want them and set up your CONFIG.SYS file
  564.       to contain the lines FILES=10 and BUFFERS=20, and if you know how to
  565.       do that already you can skip down to the section called "Running
  566.       EASISTAT".
  567.  
  568.       2.3.1  Installing EASISTAT on a hard disk
  569.  
  570.       We will assume you wish to install EASISTAT into a subdirectory
  571.       called STATS of your hard disk. We will assume that your hard disk
  572.       drive is called C: and your floppy disk drive is called A:.
  573.  
  574.       Put the floppy disk supplied into drive A: and close the door on that
  575.       drive.
  576.  
  577.       Enter each of the following lines just as they are printed (by
  578.       "enter" we mean type the line and then press the ENTER or RETURN
  579.       key).
  580.  
  581.       C:
  582.       MKDIR \STATS
  583.       CHDIR \STATS
  584.       COPY A:*.*
  585.  
  586.  
  587.                                     8                                     
  588.  
  589.  
  590.  
  591.  
  592.                                EASISTAT.DOC                               
  593.  
  594.       The eight files that were on the floppy disk are now copied onto the
  595.       hard disk into the subdirectory called STATS. Put the floppy disk
  596.       away somewhere safe.
  597.  
  598.  
  599.       2.3.2  Installing EASISTAT on a floppy disk
  600.  
  601.       We will assume that you have a floppy disk drive called A:. If you
  602.       have a second floppy disk drive it will be called B:, otherwise your
  603.       computer will pretend that your one drive is actually two and will
  604.       keep asking you to swap disks.
  605.  
  606.       Put the floppy disk supplied into drive A: and close the door on that
  607.       drive. If you have a second drive put a blank formatted disk into
  608.       that drive and close the door. Otherwise just have the second disc
  609.       ready to swap when the computer tells you to.
  610.  
  611.       Enter each of the following lines just as they are printed (by
  612.       "enter" we mean type the line and then press the ENTER or RETURN
  613.       key).
  614.  
  615.       A:
  616.       COPY *.* B:
  617.  
  618.       (If you have only one drive the computer will ask you to swap the
  619.       disks around, so just follow its instructions. The "disk for
  620.       drive A:" is the one we have supplied and the "disk for drive B:"
  621.       is the blank one to copy the program onto.)
  622.  
  623.       The eight files that were on the floppy disk supplied are now
  624.       copied onto a working disk. Put the original disk away somewhere
  625.       safe.
  626.  
  627.       2.3.3  Setting up CONFIG.SYS
  628.  
  629.       For EASISTAT to work properly you should have the following lines in
  630.       your CONFIG.SYS file:
  631.  
  632.       FILES=10
  633.       BUFFERS=20
  634.  
  635.       (The values can be higher than 10 and 20, but should not be lower. If
  636.       you choose to have deeply-nested command files and also want to have
  637.       other files open at the same time, then the value for FILES may need
  638.       to be even higher than 10, but 10 should suffice for normal usage.)
  639.  
  640.       Where is CONFIG.SYS?
  641.  
  642.       The CONFIG.SYS file is on the root directory of the disk from which
  643.       you boot up, ie the disk which your computer reads when you first
  644.       turn it on. If you put a floppy disk in drive A: before turning the
  645.       computer on it will be this disk. Please put it in the drive (do not
  646.       use the original disk supplied with your computer, but a copy of
  647.       it). If you have a hard disk and do not put a floppy disk in the
  648.  
  649.                                     9                                     
  650.  
  651.  
  652.  
  653.  
  654.                                EASISTAT.DOC                               
  655.  
  656.       drive then the computer will boot from the hard disk (which we will
  657.       assume is called C:).
  658.  
  659.       Depending on which of these is the case enter either:
  660.  
  661.       A:
  662.       CD\
  663.  
  664.       or:
  665.  
  666.       C:
  667.       CD\
  668.  
  669.       You are now in the root directory of your boot disk.
  670.  
  671.       Do you have a CONFIG.SYS file and what is in it?
  672.  
  673.       You may not have a CONFIG.SYS file at all. To see a list of all
  674.       the files in this directory enter:
  675.  
  676.       DIR /W
  677.  
  678.       If you do not see CONFIG   SYS in the list of files then you do not
  679.       have a CONFIG.SYS file and should skip to the section called
  680.       "Creating a CONFIG.SYS file".
  681.  
  682.       If you do have a CONFIG.SYS file then to see what is in it enter:
  683.  
  684.       TYPE CONFIG.SYS
  685.  
  686.       If it already has lines saying:
  687.  
  688.       FILES=10
  689.       BUFFERS=20
  690.  
  691.       (or higher numbers) then you can skip this section and go down to
  692.       "Running EASISTAT".
  693.  
  694.       If it has no lines referring to files or buffers then enter the
  695.       following line exactly as it is shown:
  696.  
  697.       COPY CONFIG.SYS+CON CONFIG.SYS
  698.  
  699.       the following lines should appear:
  700.  
  701.       CONFIG.SYS
  702.       CON
  703.  
  704.       Now again enter the following lines:
  705.  
  706.       FILES=10
  707.       BUFFERS=20
  708.  
  709.       and after the second line press the F6 key. The following symbol
  710.  
  711.                                     10                                    
  712.  
  713.  
  714.  
  715.  
  716.                                EASISTAT.DOC                               
  717.  
  718.       should appear: ^Z. (If it does not, hold down the CONTROL key and
  719.       press the Z key.) Press ENTER again and the following message should
  720.       appear:
  721.  
  722.               1 File(s) copied
  723.  
  724.       Now enter:
  725.  
  726.       TYPE CONFIG.SYS
  727.  
  728.       again to confirm that the lines you added have appeared on the end of
  729.       the file. Now you can go on to the section titled "Running
  730.       EASISTAT".
  731.  
  732.       If your original CONFIG.SYS file does have lines to set the numbers
  733.       of buffers and files but these numbers are smaller than those
  734.       suggested, then you should edit the file by using either a word
  735.       processor capable of dealing with ASCII text or by using EDLIN which
  736.       should have been supplied with your computer and which is described
  737.       in the DOS manual.
  738.  
  739.       Creating a CONFIG.SYS file
  740.  
  741.       If you do not yet have a CONFIG.SYS file on your boot disk then to
  742.       create a new one enter the following lines exactly as they appear:
  743.  
  744.       COPY CON CONFIG.SYS
  745.       FILES=10
  746.       BUFFERS=20
  747.  
  748.       and after the third line press the F6 key. The following symbol
  749.       should appear: ^Z. (If it does not, hold down the CONTROL key and
  750.       press the Z key.) Press ENTER again and the following message should
  751.       appear:
  752.  
  753.               1 File(s) copied
  754.  
  755.       Now enter:
  756.  
  757.       TYPE CONFIG.SYS
  758.  
  759.       and the last two lines should appear again, indicating that they are
  760.       in the file called CONFIG.SYS.
  761.  
  762.       2.3.4  Running EASISTAT
  763.  
  764.       (If you have just altered your CONFIG.SYS file then you should reset
  765.       your computer or turn it off and then on again so that the changes
  766.       you have just made can take effect.)
  767.  
  768.       To run EASISTAT just type EASISTAT at the DOS prompt and press ENTER
  769.       (or RETURN). This will only work if EASISTAT.EXE is in the current
  770.  
  771.  
  772.  
  773.                                     11                                    
  774.  
  775.  
  776.  
  777.  
  778.                                EASISTAT.DOC                               
  779.  
  780.       working directory. If you get the message:
  781.  
  782.       Bad command or file name
  783.  
  784.       then it means that DOS cannot find the file called EASISTAT.EXE in
  785.       the current directory and either you must move to the directory
  786.       where EASISTAT.EXE is or you you must tell DOS where it can find
  787.       EASISTAT.EXE by giving the full pathname for it.
  788.  
  789.       As an example, suppose that you are currently logged on to drive A
  790.       (which means that the DOS prompt will say A>, A:\> or something
  791.       similar) and that EASISTAT.EXE is on the hard disk, drive C, in a
  792.       subdirectory called STATS. Then to run EASISTAT you could enter one
  793.       of the following two sets of commands:
  794.  
  795.       C:
  796.       CHDIR \STATS
  797.       EASISTAT
  798.  
  799.       or:
  800.  
  801.       C:\STATS\EASISTAT
  802.  
  803.       If you are not sure whether or not you are in the subdirectory which
  804.       contains EASISTAT.EXE then enter DIR and you will see a list of all
  805.       files in that subdirectory. If you do not understand how the
  806.       subdirectory structure works and how to manipulate files with DOS
  807.       commands, then we strongly advise you to study the DOS manual and
  808.       make yourself familiar with the following commands: DIR, MKDIR,
  809.       CHDIR, COPY, DEL, REN. They are quite straightforward when you get
  810.       the hang of them and your computer will be much more useful to you
  811.       once you have understood them.
  812.  
  813.  
  814.       2.3.5  Using subdirectories
  815.  
  816.       The program EASISTAT is loaded from a program file called
  817.       EASISTAT.EXE. As well as this file EASISTAT can also use four other
  818.       kinds of file: data files, output files, graph files and command
  819.       files. You will need to decide where you want to keep these
  820.       different files.
  821.  
  822.       The simplest solution is to have EASISTAT.EXE and the other files
  823.       used all on the same disk and all in the same subdirectory. Then
  824.       whenever you want to use EASISTAT you should first move into that
  825.       subdirectory (using the first of the two methods described in the
  826.       section above) and then all the files will automatically be in
  827.       the right place.
  828.  
  829.                                     * * * * *
  830.  
  831.  
  832.  
  833.  
  834.  
  835.                                     12                                    
  836.  
  837.  
  838.  
  839.  
  840.                                EASISTAT.DOC                               
  841.  
  842.       Example 1. EASISTAT.EXE and data files both on a disk in drive A.
  843.       Enter:
  844.  
  845.       A:
  846.       EASISTAT
  847.  
  848.       Example 2. EASISTAT.EXE on a disk in drive A and data files on a
  849.       disk in drive B.
  850.       Enter:
  851.  
  852.       B:
  853.       A:EASISTAT
  854.  
  855.                                     * * * * *
  856.  
  857.       If you know how to use the PATH command you may want to put
  858.       EASISTAT.EXE on the search path. See your DOS manual for details.
  859.  
  860.       2.3.6  If you only have one disk drive
  861.  
  862.       If you have EASISTAT.EXE on one floppy disk and your data files
  863.       on another, then you can use them both in the same disk drive as
  864.       follows:
  865.  
  866.       1) Put the disk containing EASISTAT.EXE in the drive, close the
  867.       door of the drive and enter:
  868.  
  869.       EASISTAT
  870.  
  871.       2) Put the first disk aside and replace it with the disk which
  872.       you wish to use for data files etc. When you use EASISTAT it will
  873.       read and write the files on this disk.
  874.  
  875.       2.3.7 Command line parameters
  876.  
  877.       These are instructions to the program typed in on the same line as
  878.       you type EASISTAT and control the way that the program starts up.
  879.  
  880.       They are entered as follows:
  881.  
  882.                                     * * * * *
  883.  
  884.       2.4  SCREEN LAYOUT
  885.  
  886.       The EASISTAT screen consists of two windows, a bottom window
  887.       where you type in instructions for the program and a top window
  888.       where the output from EASISTAT appears. The only exception to
  889.       this is when you are using the editor, when you are allowed to
  890.       type directly into the top window.
  891.  
  892.       It is important to keep this distinction clearly in mind because
  893.       when you learn how to use command files and output files you will
  894.       find that command files consist of exactly what you type into the
  895.       bottom window, and output files consist of exactly what comes out
  896.  
  897.                                     13                                    
  898.  
  899.  
  900.  
  901.  
  902.                                EASISTAT.DOC                               
  903.  
  904.       of the top window.
  905.  
  906.       Sometimes the output from EASISTAT is too wide to all fit on the
  907.       screen (for example when listing rows of data). When this happens
  908.       only part of the output will be viewed on screen, but if an
  909.       output file is open then all the output will be sent to that.
  910.  
  911.       2.5  KEYBOARD INPUT
  912.  
  913.       Every time the "Select function -" message appears you can type
  914.       normal letters, numbers and punctuation along a line and can use
  915.       the BACKSPACE key to correct mistakes. When you have finished
  916.       typing what you want press the ENTER key and EASISTAT will act on
  917.       what you have typed. This will be described as entering a line.
  918.       On some computers the ENTER key is called RETURN or CR or is marked
  919.       with an arrow going down and then left. For brevity we will just
  920.       refer to it as the ENTER key. Please note that anything you type can
  921.       use either capital letters or lower case letters, or if you like a
  922.       mixture of the two. We have used capital letters a lot in this
  923.       manual to try to make things clear, but there is no need at all for
  924.       you to use them if you find lower case letters more convenient.
  925.  
  926.       When using the special data editor called up by the EDIT command
  927.       you will need to use the special keys on the numeric keypad, the
  928.       ESCAPE key and the CONTROL key. The special keys comprise the
  929.       cursor keys and the HOME, END, PAGEUP, PAGEDOWN and DELETE keys.
  930.       The cursor keys are referred to as RIGHT ARROW, DOWN ARROW etc.
  931.       If you do not have these keys in a special cluster then make sure
  932.       to turn off the NUMLOCK key before using them. The ESCAPE key is
  933.       marked "Esc" and is usually up to the top left of the keyboard. To
  934.       use the CONTROL key (the key marked "Ctrl" near the bottom left of
  935.       the keyboard) first hold it down and then while keeping it pressed
  936.       push the key that goes with it, so to type CONTROL-F hold down the
  937.       CONTROL key, press and release the F key, and finally release the
  938.       CONTROL key.
  939.  
  940.       2.6  DESCRIPTION OF FILES USED BY EASISTAT
  941.  
  942.       EASISTAT reads and writes four kinds of files. These are data
  943.       files, output files, graph files and command files. Command files
  944.       are sometimes also referred to as input files.
  945.  
  946.       2.6.1  Data files
  947.  
  948.       Data can be stored in these files by EASISTAT, and EASISTAT can
  949.       read data files either that it has written itself or that have
  950.       been produced by another program like a spreadsheet or
  951.       wordprocessor. The command used to read a data file is DATA, and
  952.       to save a data file DATA SAVE is used. Please see the section on
  953.       the DATA command for details of the format of data files.
  954.  
  955.       2.6.2  Output files
  956.  
  957.       These are files containing the results of EASISTAT's statistical
  958.  
  959.                                     14                                    
  960.  
  961.  
  962.  
  963.  
  964.                                EASISTAT.DOC                               
  965.  
  966.       tests, or anything else which you ask the program to write out.
  967.       They contain copies of all the output which appears in the top
  968.       window of the screen. They are created with the OUTPUT command,
  969.       so please see the section on this command for details.
  970.  
  971.       2.6.3  Command files
  972.  
  973.       These contain lists of commands for EASISTAT to perform, just as
  974.       if you were typing in those commands at the keyboard. They are
  975.       read using the INPUT command and can be written using a word
  976.       processor or the LOG command. Please see the sections on these two
  977.       commands for details. Command files are a powerful facility of
  978.       EASISTAT allowing you to run long statistical analyses automatically
  979.       from a series of commands that you have prepared in advance, and
  980.       also make it possible to run EASISTAT from within DOS batch files.
  981.  
  982.       2.6.4 Graph files
  983.  
  984.       Although EASISTAT cannot draw graphs itself, it can output
  985.       information which allows other programs to draw graphs from
  986.       EASISTAT's data. These graph files are produced by the CHISQ
  987.       command using the G option.
  988.  
  989.       2.7  EDITING FILES
  990.  
  991.       The four kinds of auxiliary file EASISTAT uses, data, output,
  992.       graph and command files, are all ASCII files. This means that they
  993.       are files containing only normal characters like letters, numbers,
  994.       punctuation and line feeds, and none of the special characters
  995.       that some word processors use. Although it is not absolutely
  996.       essential to do so, it will add enormously to the value and
  997.       convenience of EASISTAT if you have the ability to edit these
  998.       files, and to do that you need a word processor or editor that
  999.       can deal with ASCII text. Most word processors nowadays do have
  1000.       an option to do this (in fact if yours does not we suggest you
  1001.       might think about getting a new one) however sometimes it can be
  1002.       difficult to tell from the manual how to select this option.
  1003.  
  1004.       Your word processor may work with ASCII files as a matter of
  1005.       course. To test this, run your word processor and type a few
  1006.       lines of text then save it in a file called TEST and quit the
  1007.       word processor. Now type TYPE TEST or COPY TEST CON. In each case
  1008.       what you typed should appear on the screen, and if it appears
  1009.       just as you typed it with no funny smiley faces or weird symbols
  1010.       or beeps then it is an ASCII file and you can use your word
  1011.       processor to edit EASISTAT files directly. An example of a word
  1012.       processor that uses ASCII files is PC-Write.
  1013.  
  1014.       If (as is more likely) you do get a few funny symbols then you
  1015.       are going to have to find out if there is a special option to
  1016.       read and write ASCII files. Try looking for one of the following
  1017.       options in your word processor manual: ASCII, Import/Export text,
  1018.       Save/Retrieve DOS text, non-document mode. If you find something
  1019.       that looks likely then use it to save a file to disc and then use
  1020.  
  1021.                                     15                                    
  1022.  
  1023.  
  1024.  
  1025.  
  1026.                                EASISTAT.DOC                               
  1027.  
  1028.       the TYPE command to display it as suggested above.
  1029.  
  1030.       If you can't find any way for your word processor to handle ASCII
  1031.       then you will have to use something else to edit files with
  1032.       (though it is not impossible to use EASISTAT without the
  1033.       auxiliary files, just inconvenient). You could use EDLIN, which
  1034.       is a program supplied free with most computers and is described
  1035.       in your DOS manual, but it is not very powerful or user friendly.
  1036.       Instead we would recommend that you spend a few pounds to acquire
  1037.       a copy of PC-Write from a firm which distributes ShareWare (see the
  1038.       section above on "Other Shareware programs").
  1039.  
  1040.       2.8  DRAWING GRAPHS
  1041.  
  1042.       It is planned to produce a program called EASIPLOT which will
  1043.       produce graphs from EASISTAT'S graph files, but this is not yet
  1044.       available. However the graphs can be displayed using a program called
  1045.       PCG2 which is distributed with a Shareware database called
  1046.       PC-File:dB. This is a well worth acquiring in its own right anyway.
  1047.       For details of where to obtain a copy see the section above on
  1048.       "Other Shareware programs".
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080.  
  1081.  
  1082.  
  1083.                                     16                                    
  1084.  
  1085.  
  1086.  
  1087.  
  1088.                                EASISTAT.DOC                               
  1089.  
  1090.       Chapter 3               COMMAND SYNTAX
  1091.  
  1092.       EASISTAT stores its data in a table of values arranged in rows and
  1093.       columns. To get EASISTAT to do anything you have to give it a
  1094.       command, or function, to perform. Most commands will also require
  1095.       other information, such as which columns to apply a particular
  1096.       analysis to. The way in which this information is specified can be
  1097.       called the format or syntax of the command. When each command is
  1098.       described in this manual its format is defined with it, but to
  1099.       understand the format required there are some important general
  1100.       rules it is helpful to become familiar with first.
  1101.  
  1102.       To illustrate these rules we will take the BASICS command, which
  1103.       is described later in the manual in the following way:
  1104.  
  1105.       Format: B[asics] [ranks] column [if condition]
  1106.  
  1107.       This means that the function is called BASICS, but that all but
  1108.       the first letter B is optional, that it can have an optional
  1109.       switch called RANKS, that the column to be studied must be
  1110.       specified, and that finally one can add logical and arithmetic
  1111.       conditions limiting the rows to be studied by entering IF
  1112.       followed by a condition. This means that one can enter for
  1113.       instance:
  1114.  
  1115.       BASICS RANKS C1 IF (C2-C3)<7
  1116.  
  1117.       This command would cause the basic description of the values in
  1118.       column 1 to be displayed (their mean, mode, standard deviation,
  1119.       etc.). Only certain rows would be used - those for which the value
  1120.       in column 3 subtracted from the value column 2 was less than 7. It
  1121.       would also display the rank and frequency table of the values. In
  1122.       the sections which follow we will look at the individual aspects of
  1123.       command format more closely.
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.                                     17                                    
  1146.  
  1147.  
  1148.  
  1149.  
  1150.                                EASISTAT.DOC                               
  1151.  
  1152.       3.1  SELECTING A FUNCTION
  1153.  
  1154.       Here is the list of functions available (it is displayed by
  1155.       EASISTAT when the HELP command is selected):
  1156.  
  1157.       Help                                Titles
  1158.       Basics [ranks] column [if cond]     Data [save] [filename]
  1159.       List [if cond]                      Chisq [Fish] [Num] [Yates] [Graph]
  1160.       Wilcoxon [column]                   Ttest [paired]
  1161.       Anova [column]                      Kendall's [column column]
  1162.       Kolmogorov [column]                 Regress [column column]
  1163.       Multiple regression [column]        Component analysis
  1164.       Narrow cond                         Widen [cond]
  1165.       Arithmetic                          New [column or row or next]
  1166.       Label [column [name]]               Format [col or default [width dec]]
  1167.       Derive [column [sum]]               Delete [column or row]
  1168.       Echo                                Input [filename or close]
  1169.       Output [filename or close]          Log [filename or close]
  1170.       Edit                                Screen
  1171.       Sort [down] [column]                Pause
  1172.       System [command]                    Quit
  1173.  
  1174.       To select one of these functions when asked simply type in the
  1175.       first word of the name of the function. You do not have to type
  1176.       in the whole word. EASISTAT will select the first function from
  1177.       the above list that matches the letters you have typed. So to
  1178.       select the BASICS function you could type:
  1179.  
  1180.       BASICS
  1181.        or:
  1182.       BAS
  1183.        or:
  1184.       B
  1185.  
  1186.       Note that if you type:
  1187.  
  1188.       W
  1189.  
  1190.       you will get the WILCOXON function and not the WIDEN command. If
  1191.       you want the WIDEN command you would have to type at least:
  1192.  
  1193.       WID
  1194.  
  1195.       Remember eveything can be typed in upper or lower case, or a
  1196.       mixture. So:
  1197.  
  1198.       b
  1199.  
  1200.       is just as good as:
  1201.  
  1202.       BASICS
  1203.  
  1204.  
  1205.  
  1206.  
  1207.                                     18                                    
  1208.  
  1209.  
  1210.  
  1211.  
  1212.                                EASISTAT.DOC                               
  1213.  
  1214.       To use the same example given above, one could type:
  1215.  
  1216.       B RANKS C1 IF (C2-C3)<7
  1217.  
  1218.       or:
  1219.  
  1220.       bas ranks c1 if (c2-c3)<7
  1221.  
  1222.       and achieve just the same result.
  1223.  
  1224.       When the format of a command is described in this manual, square
  1225.       brackets are put round the optional letters of the command name,
  1226.       eg:
  1227.  
  1228.       B[asics]
  1229.       Wid[en]
  1230.  
  1231.       3.2  COMMAND OPTIONS
  1232.  
  1233.       Some of the functions can have different options attached to
  1234.       them. An option appears in square brackets in the list above and
  1235.       when the manual describes each function. An option can be
  1236.       selected or not, and sometimes more than one option can be
  1237.       selected. BASICS has an option, RANKS, which makes it print out a
  1238.       list of values in rank order together with values for percentage
  1239.       and cumulative percentage. An option is specified by the first
  1240.       letter, although the whole word can be typed for clarity. Taking
  1241.       the above example one could enter:
  1242.  
  1243.       BASICS RANKS C1 IF (C2-C3)<7
  1244.  
  1245.       or:
  1246.  
  1247.       b r c1 if (c2-c3)<7
  1248.  
  1249.       If the r is left out, the BASICS function will do exactly the
  1250.       same thing but without also producing the rank/frequency table:
  1251.  
  1252.       b c1 if (c2-c3)<7
  1253.  
  1254.       The second option available in BASICS is IF followed by a
  1255.       condition which specifies wich rows to study. IF is exceptional
  1256.       in that it must be written in full, just I would not be adequate.
  1257.       This option similarly can be left out, in which case all the rows
  1258.       will be included in the analysis:
  1259.  
  1260.       b c1
  1261.  
  1262.       or:
  1263.  
  1264.       BASICS C1
  1265.  
  1266.       For some of the other functions (though not BASICS), a column or
  1267.       filename is shown as being optional by being put in square brackets.
  1268.  
  1269.                                     19                                    
  1270.  
  1271.  
  1272.  
  1273.  
  1274.                                EASISTAT.DOC                               
  1275.  
  1276.       This means that you do not have to type the column in the command
  1277.       line, but then you will be asked by EASISTAT to specify which column
  1278.       you mean in a second line. It's just a question of convenience for
  1279.       you whether you put the column into the command line or not. When
  1280.       you first start to use EASISTAT it is better just to select a
  1281.       function and then EASISTAT will ask you for other details, but as
  1282.       you grow more familiar with the program you may feel like typing
  1283.       more into the first line. There is an important point however.
  1284.       Although if you omit a necessary parameter like a column number you
  1285.       will usually be asked to supply it, in contrast if you omit an
  1286.       option like RANKS or IF from the command line you cannot add it in
  1287.       later in a second line. All the command options must be specified in
  1288.       the command line.
  1289.  
  1290.       3.3  REFERRING TO ROWS AND COLUMNS
  1291.  
  1292.       EASISTAT is based around the concept that all the different
  1293.       variables attached to one data object (eg an experimental
  1294.       subject) are in one row, and that they are arranged in columns
  1295.       according to the quantity they measure. So one column might be
  1296.       for temperature, another for mass, etc. and one row might be for
  1297.       one rock and another row for another. Thus the statistical
  1298.       functions essentially operate on columns - the mean of one rock's
  1299.       weight and temperature would make little sense.
  1300.  
  1301.       In almost all functions we need to be able to tell EASISTAT which
  1302.       columns we want to look at and to do this we type C followed
  1303.       immediately (no space) by a number between 1 and the number of
  1304.       columns there are, eg C1, c3 or c25. Occasionally we may wish to
  1305.       refer to a specific row - when we want to delete a certain row
  1306.       perhaps. To do this we type the keyword ROW followed by a space
  1307.       and then the number of the row we mean, eg row 4 or ROW 29. There is
  1308.       really nothing much that EASISTAT can do with rows except insert
  1309.       them or delete them. We used this syntax in the example above
  1310.       when we said :
  1311.  
  1312.       b c1
  1313.  
  1314.       meaning take the basic statistics of all the values appearing in
  1315.       the first column.
  1316.  
  1317.       In the logical and arithmetic expressions described below it is
  1318.       necessary to refer to the values which appear in cells in
  1319.       different rows. The rows are looked at one at a time and then the
  1320.       value specified is taken from that row, so that in a logical
  1321.       function c15 means "the value appearing in column 15 of the row I
  1322.       am currently interested in". In this context the keyword ROW
  1323.       (here appearing with no number after it) means "the number of the
  1324.       row I am currently interested in". In fact, we don't think you'll
  1325.       be referring to row numbers much and the whole thing should become
  1326.       fairly clear with a few examples.
  1327.  
  1328.  
  1329.  
  1330.  
  1331.                                     20                                    
  1332.  
  1333.  
  1334.  
  1335.  
  1336.                                EASISTAT.DOC                               
  1337.  
  1338.       3.4  LOGICAL EXPRESSIONS
  1339.  
  1340.       In the example above there is a condition which specifies which
  1341.       rows are to be included in the analysis, and in general a
  1342.       condition is a statement of a logical function which is either
  1343.       true or false. So c5>6 is true if the value in the fifth column
  1344.       of a given row is 9, but false if it is 2. Conditions are used to
  1345.       specify whether or not a row belongs to a given group, and in the
  1346.       example given whether or not it should be included with the other
  1347.       values towards deciding the sample mean, standard deviation, etc.
  1348.  
  1349.       b c1 if (c2-c3)<7
  1350.  
  1351.       means that if the statement given is true for a particular row
  1352.       then the value in column one will be taken and added to the
  1353.       sample and incorporated in the measurement of mean and standard
  1354.       deviation, but if not that particular row will be ignored for the
  1355.       purpose of the current analysis and left out of the sample.
  1356.  
  1357.       Here is a list of all the logical operators:
  1358.  
  1359.         x | y     x OR y                   (either can be true)
  1360.         x & y     x AND y                  (both must be true)
  1361.         x != y    x NOT EQUAL TO y
  1362.         x = y     x EQUAL TO y
  1363.         x < y     x LESS THAN y
  1364.         x > y     x GREATER THAN y
  1365.         x <= y    x LESS THAN OR EQUAL TO y
  1366.         x >= y    x GREATER THAN OR EQUAL TO y
  1367.         ! x       NOT x
  1368.  
  1369.       (The | symbol meaning OR appears as a broken vertical bar on the
  1370.       screen and as either a solid or broken bar on the keyboard, often
  1371.       above the backslash symbol: \.)
  1372.  
  1373.       The expression is true if the relationship between x and y is as
  1374.       described, but false if not. The OR relationship is true if
  1375.       either condition x or condition y is true, and the AND
  1376.       relationship is true only if both condition x and condition y are
  1377.       true. Here are some examples:
  1378.  
  1379.       c13>c12
  1380.       - the value in column 13 must be higher than the value in column
  1381.       12
  1382.  
  1383.       c13<=c12
  1384.       - the value in column 13 must be less than or equal to the value
  1385.       in column 12, ie it must not be greater than it
  1386.  
  1387.       !(c13>c12)
  1388.       - the value in column 13 must not be greater than the value in
  1389.       column 12, ie the same effect as the previous example
  1390.  
  1391.  
  1392.  
  1393.                                     21                                    
  1394.  
  1395.  
  1396.  
  1397.  
  1398.                                EASISTAT.DOC                               
  1399.  
  1400.       c5>5
  1401.       - the value in column 5 must be greater than 5
  1402.  
  1403.       (c5>5)|(c6<10)
  1404.       - either the value in column 5 must be greater than 5 or the
  1405.       value in column 6 must be less than 10 for the condition to be
  1406.       true
  1407.  
  1408.       (c5>5)&(c6<10)
  1409.       - both the value in column 5 must be greater than 5 and the value
  1410.       in column 6 must be less than 10 for the condition to be true
  1411.  
  1412.       (c5>5)&(c5<10)
  1413.       - the value in column 5 must both be greater than 5 and less than
  1414.       10, ie the value in column 5 must lie between 5 and 10
  1415.  
  1416.       (c5=3)|(c5=5)|(c5=7)
  1417.       - the value in column 5 must be 3, 5 or 7
  1418.  
  1419.       (c5=3)&(c5=5)&(c5=7)
  1420.       - this can never be true, the value in column 5 cannot be 3 and 5
  1421.       and 7 all at once
  1422.  
  1423.       (c5!=3)&(c5!=5)&(c5!=7)
  1424.       - the value in column 5 must be anything except 3, 5 or 7
  1425.  
  1426.       (c5=2.2) | (((c5>5) & (c5<10)) & !((c5>6) & (c5<7)))
  1427.       - the value in column 5 can be 2.2, or else it must lie between 5
  1428.       and 10 but must not lie between 6 and 7
  1429.  
  1430.       So you see expressions can be made as simple or as complicated as
  1431.       you like, and sub-clauses are contained in brackets. In fact the
  1432.       brackets are not always necessary - see the section below on
  1433.       operator precedence. Spaces occurring in logical and arithmetic
  1434.       expressions are ignored.
  1435.  
  1436.       When the keyword ROW is used in a condition then the number of
  1437.       the row itself is tested, so:
  1438.  
  1439.       row<5
  1440.  
  1441.       is true if the number of the row is less than 5, ie one of the
  1442.       first four rows.
  1443.  
  1444.       Contrast this to:
  1445.  
  1446.       c1<5
  1447.  
  1448.       which as we have already discussed means the rows for which the
  1449.       value in the first column is less than 5.
  1450.  
  1451.       There is no reason why references to rows and column cannot be
  1452.  
  1453.  
  1454.  
  1455.                                     22                                    
  1456.  
  1457.  
  1458.  
  1459.  
  1460.                                EASISTAT.DOC                               
  1461.  
  1462.       combined in the same expression, eg:
  1463.  
  1464.       (c1<10) & (row<5)
  1465.  
  1466.       or even:
  1467.  
  1468.       c1<row
  1469.  
  1470.       Note to users familiar with spreadsheets:
  1471.  
  1472.                                     * * * * *
  1473.  
  1474.       3.5  ARITHMETIC EXPRESSIONS
  1475.  
  1476.       When we said C2-C3 in the first example, that was an arithemetic
  1477.       expression meaning (obviously) the value in column 3 subtracted
  1478.       from the value in column 2. Many other functions are available,
  1479.       and here is a complete list:
  1480.  
  1481.       x - y     x MINUS y
  1482.       x + y     x PLUS y
  1483.       x mod y   x MODULO y
  1484.       x / y     x DIVIDED BY y
  1485.       x * y     x TIMES y
  1486.       x pow y   x TO THE yTH POWER
  1487.       x pX y    PROBABILITY OF CHI-SQUARED x WITH y DEGREES OF FREEDOM
  1488.       x pT y    PROBABILITY OF STUDENT'S T x WITH y DEGREES OF FREEDOM
  1489.  
  1490.       abs x     ABSOLUTE VALUE OF x
  1491.       log x     LOG x BASE 10
  1492.       ln x      NATURAL LOG OF x                              (base e)
  1493.       exp x     e TO THE xTH POWER                   (natural antilog)
  1494.       sin x     SIN x RADIANS
  1495.       arcsin x  ARCSIN x
  1496.       cos x     COS x RADIANS
  1497.       arccos x  ARCCOS x
  1498.       tan x     TAN x RADIANS
  1499.       arctan x  ARCTAN x
  1500.       pN x      ONE-TAILED PROBABILITY OF x IN A NORMAL DISTRIBUTION
  1501.       lfact x   NATURAL LOG OF FACTORIAL x
  1502.  
  1503.       Arithmetic expressions can be written out just as they appear on
  1504.       paper, again with brackets to clarify the order of operations
  1505.       (please see the section on operator precedence to see the
  1506.       importance of using brackets correctly, it's not what you might
  1507.       think):
  1508.  
  1509.       c3+c4*6
  1510.       (c3+c4)*6
  1511.       (c4*c5)pow3
  1512.  
  1513.                                     * * * * *
  1514.  
  1515.  
  1516.  
  1517.                                     23                                    
  1518.  
  1519.  
  1520.  
  1521.  
  1522.                                EASISTAT.DOC                               
  1523.  
  1524.       c13 pX 3
  1525.  
  1526.       This example would take the value in column 13 to be a chi-squared
  1527.       statistic with three degrees of freedom and computes its
  1528.       probability, or p value. See the section on the ARITHMETIC function
  1529.       for details of how to use EASISTAT as a set of statistics tables to
  1530.       look up.
  1531.  
  1532.       3.6  OPERATOR PRECEDENCE
  1533.  
  1534.       Operator precedence means the order in which logical or arithmetic
  1535.       operation are performed. We are all familiar with the idea that:
  1536.  
  1537.       3+4/2
  1538.  
  1539.       means three added to four-divided-by-two and not three-plus-four
  1540.       divided by two, so that the answer is 5 and not 3.5. However in
  1541.       EASISTAT things are taken a little bit further (this is not a
  1542.       feature, it is a bug) in that some operations are always performed
  1543.       before others, even though they shouldn't be. In particular addition
  1544.       is always performed before subtraction so that:
  1545.  
  1546.       9-3+1 = 5
  1547.  
  1548.       because it is taken to be:
  1549.  
  1550.       9-(3+1)
  1551.  
  1552.       Similarly multiplication is always performed before division.
  1553.       Here is a complete list of precedences:
  1554.  
  1555.         x | y
  1556.         x & y
  1557.         x != y
  1558.         x = y
  1559.         x < y
  1560.         x > y
  1561.         x <= y
  1562.         x >= y
  1563.         x - y
  1564.         x + y
  1565.         x mod y
  1566.         x / y
  1567.         x * y
  1568.         x pow y
  1569.         x pX y
  1570.         x pT y
  1571.  
  1572.       The lower down an operator is, the sooner it is performed, as if it
  1573.       was enclosed in a pair of brackets. This means that writing:
  1574.  
  1575.       c1+c2*c3+c4powc5*c6/4pt15
  1576.  
  1577.  
  1578.  
  1579.                                     24                                    
  1580.  
  1581.  
  1582.  
  1583.  
  1584.                                EASISTAT.DOC                               
  1585.  
  1586.       is equivalent to writing:
  1587.  
  1588.       c1 + (c2*c3) + (((c4powc5)*c6) / (4pt15))
  1589.  
  1590.       If you want the operations carried out in any other order then you
  1591.       have to explicitly specify it yourself using brackets.
  1592.  
  1593.                                     * * * * *
  1594.  
  1595.       3.7  COMBINING ARITHMETIC AND LOGICAL FUNCTIONS
  1596.  
  1597.       Not only can arithmetic and logical operations be arbitrarily
  1598.       complex, they can also be combined together in very flexible
  1599.       ways. Of course we have already seen examples of this because
  1600.       (c2-c3)>7 combines an arithmetic expression, c2-c3, with a
  1601.       logical one, sum>7.
  1602.  
  1603.                                     * * * * *
  1604.  
  1605.  
  1606.  
  1607.  
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.                                     25                                    
  1642.  
  1643.  
  1644.  
  1645.  
  1646.                                EASISTAT.DOC                               
  1647.  
  1648.       Chapter  4            DATA MANAGEMENT FUNCTIONS
  1649.  
  1650.       In this chapter we describe how to manipulate the data which
  1651.       EASISTAT uses. For details on how to read and write data files on
  1652.       disk see the section on file management functions and the DATA
  1653.       command.
  1654.  
  1655.       4.1  EDIT
  1656.  
  1657.  
  1658.       Format: Ed[it]
  1659.  
  1660.       EDIT is the command used to invoke EASISTAT's special data editor.
  1661.       The editor displays the data values in a table of rows and columns.
  1662.       Using the cursor keys you can move freely over this table and
  1663.       inspect, change or add values at will.
  1664.  
  1665.       Special keys are used to operate the editor in a way which does
  1666.       not apply to the rest of EASISTAT's functions. It is not possible
  1667.       to operate the editor from a command file (though it can be
  1668.       invoked from a command file) - the editor can only be operated
  1669.       directly from the keyboard.
  1670.  
  1671.       Examples:
  1672.  
  1673.       Select function -  edit
  1674.       Select function -  ED
  1675.       Select function -  ed
  1676.  
  1677.       All the above commands will invoke the editor.
  1678.  
  1679.       Movement keys
  1680.  
  1681.       RIGHT ARROW              - move one cell right
  1682.       LEFT ARROW               - move one cell left
  1683.       UP ARROW                 - move one cell up
  1684.       DOWN ARROW               - move one cell down
  1685.  
  1686.                                     * * * * *
  1687.  
  1688.       Keys to add new rows and columns
  1689.  
  1690.       ENTER                    - move down a row and go to first column
  1691.                                  of it, and if on last row create a
  1692.                                  new row below it
  1693.       CONTROL-RIGHT ARROW      - if on last column, create a new column
  1694.                                  to the right
  1695.  
  1696.                                     * * * * *
  1697.  
  1698.       Keys to change column format
  1699.  
  1700.                                     * * * * *
  1701.  
  1702.  
  1703.                                     26                                    
  1704.  
  1705.  
  1706.  
  1707.  
  1708.                                EASISTAT.DOC                               
  1709.  
  1710.       Special keys
  1711.  
  1712.       DELETE                   - deletes the contents of a cell
  1713.       BACKSPACE                - deletes last letter typed
  1714.       ESCAPE                   - finishes editing, returns to main
  1715.                                  program
  1716.  
  1717.                                     * * * * *
  1718.  
  1719.  
  1720.       So to enter your data using the editor proceed as follows:
  1721.  
  1722.       1) When asked to "Select function - " enter ED.
  1723.  
  1724.       2) Move the cursor to the titles row, which if the table is empty
  1725.       will say NEW.
  1726.  
  1727.       3) Type in the title which you want,
  1728.  
  1729.                                     * * * * *
  1730.  
  1731.       4) Press CONTROL-RIGHT ARROW to make a new column to the right.
  1732.  
  1733.       5) Keep repeating steps 3 and 4 until you have enough columns.
  1734.       (Note that every column must have a title, you cannot leave the
  1735.       title blank.)
  1736.  
  1737.       6) Press ENTER to go to start of the next row of values.
  1738.  
  1739.       7) Enter the correct value in a cell.
  1740.  
  1741.       8) Press RIGHT ARROW to move to the next column.
  1742.  
  1743.       9) Keep repeating steps 7 and 8 until you have filled the row.
  1744.  
  1745.       10) Keep repeating steps 6, 7, 8 and 9 until you have entered all
  1746.       the data.
  1747.  
  1748.       11) Press ESCAPE.
  1749.  
  1750.       12) Use the DATA SAVE command to save your data to disk (eg enter
  1751.       DATA SAVE MYDATA.DAT, see the section on the DATA command for
  1752.       details).
  1753.  
  1754.       Note the following points:
  1755.  
  1756.       If you make a mistake just go back to the cell and type in the
  1757.       correct value.
  1758.  
  1759.                                     * * * * *
  1760.  
  1761.  
  1762.  
  1763.  
  1764.  
  1765.                                     27                                    
  1766.  
  1767.  
  1768.  
  1769.  
  1770.                                EASISTAT.DOC                               
  1771.  
  1772.       4.2  TITLES
  1773.  
  1774.       Format: T[itles]
  1775.  
  1776.       This command outputs a list of the titles of the columns of the
  1777.       current data set. This is helpful to remind you what the column
  1778.       numbers refer to.
  1779.  
  1780.       Examples:
  1781.  
  1782.       Select function -  t
  1783.       Select function -  TITLE
  1784.       Select function -  Ti
  1785.  
  1786.       All these commands will have the same effect.
  1787.  
  1788.       Example output:
  1789.  
  1790.                                     * * * * *
  1791.  
  1792.       Comments
  1793.  
  1794.                                     * * * * *
  1795.  
  1796.       4.3  LIST
  1797.  
  1798.       Format: L[ist] [if condition]
  1799.  
  1800.       This function lists all the rows of data, or can be followed by
  1801.       an optional condition to list only some of the rows.
  1802.  
  1803.       Examples:
  1804.  
  1805.       Select function -  l
  1806.  
  1807.       Select function -  LI
  1808.  
  1809.       These will have the same effect of listing out all the rows.
  1810.  
  1811.       Select function -  l if c1<5
  1812.  
  1813.       This will only list out those rows in which the first value is
  1814.       less than 5.
  1815.  
  1816.       Select function -  LIST IF ROW<=5
  1817.  
  1818.       This will only list out the first 5 rows.
  1819.  
  1820.       Example output:
  1821.  
  1822.                                     * * * * *
  1823.  
  1824.       Columns are listed according to the format currently assigned to
  1825.       that column in terms of column width and number of decimal places
  1826.  
  1827.                                     28                                    
  1828.  
  1829.  
  1830.  
  1831.  
  1832.                                EASISTAT.DOC                               
  1833.  
  1834.       displayed. You can alter these with the FORMAT command.
  1835.  
  1836.       Comments
  1837.  
  1838.                                     * * * * *
  1839.  
  1840.       4.4  NEW
  1841.  
  1842.       Format: Ne[w] [column] or [row [number]]
  1843.  
  1844.       Inserts a new column or row in the data table. The new column
  1845.       will be given the title NEW and will have the default width and
  1846.       number of decimal places displayed. If instead of a numbered
  1847.       column the key word NEXT is used then a new column will be
  1848.       created to the right of the table. If instead of a number after
  1849.       the keyword ROW the keyword NEXT is given then a new row will be
  1850.       added to the bottom of the table. The new column or row is filled
  1851.       with zeroes.
  1852.  
  1853.       Examples:
  1854.  
  1855.       Select function -  new c2
  1856.  
  1857.       Creates a new column in the second position.
  1858.  
  1859.       Select function -  new row 4
  1860.  
  1861.       Creates a new row in the fourth position.
  1862.  
  1863.                                     * * * * *
  1864.  
  1865.      4.5  DELETE
  1866.  
  1867.       Format: Del[ete] [column] or [row [number]]
  1868.  
  1869.       Deletes a row or column. All the other rows or columns are moved
  1870.       up or to the left one space to fill the gap.
  1871.  
  1872.       Examples:
  1873.  
  1874.       Select function -  delete c2
  1875.  
  1876.       Deletes second column.
  1877.  
  1878.       Select function -  DEL ROW 4
  1879.  
  1880.       Deletes fourth row.
  1881.  
  1882.                                     * * * * *
  1883.       4.6  LABEL
  1884.  
  1885.       Format: La[bel] [column [new name]]
  1886.  
  1887.       This is the command used to change the title appearing at the top
  1888.  
  1889.                                     29                                    
  1890.  
  1891.  
  1892.  
  1893.  
  1894.                                EASISTAT.DOC                               
  1895.  
  1896.       of a column.
  1897.  
  1898.       Examples:
  1899.  
  1900.       Select function -  lab c2 logA
  1901.  
  1902.       Now the new title for c2 is logA.
  1903.  
  1904.                                     * * * * *
  1905.  
  1906.       4.7  FORMAT
  1907.  
  1908.       Format: F[ormat] [column or default [width decimals]]
  1909.  
  1910.       The FORMAT command allows changes in the way a column is
  1911.       displayed by EDIT, LIST and when the DATA SAVE command is used.
  1912.       The column width and number of decimal places displayed can be
  1913.       changed. If instead of a column the keyword DEFAULT is used, then
  1914.       all new columns will be created according to the specification
  1915.       given.
  1916.  
  1917.       Examples:
  1918.  
  1919.       Select function -  f c2 6 3
  1920.  
  1921.       This changes the format of the second column so that it is six
  1922.       digits wide and three decimal places be displayed after the
  1923.       decimal point, eg numbers will be shown as 23.319, 6.000.
  1924.  
  1925.                                     * * * * *
  1926.  
  1927.       Comments
  1928.  
  1929.       It is vital to realise that when you save data to disk you are
  1930.       only saving the values to the precision of the current column
  1931.       format. All the time EASISTAT holds data in its memory it treats
  1932.       values as floating point numbers which are stored with a high
  1933.       precision. As soon as they are saved to disk however they are
  1934.       treated as digits as you see them displayed, so that if a
  1935.       fractional number is displayed with no decimal places then it
  1936.       will be saved as a whole number and the fractional part will be
  1937.       lost.
  1938.  
  1939.                                     * * * * *
  1940.  
  1941.       4.8  DERIVE
  1942.  
  1943.       Format: Der[ive] [column [sum]]
  1944.  
  1945.       This is a very powerful function which allows you to transform
  1946.       values in one column or to derive the values in one column from the
  1947.       values in others. One column can be set to be for example the total
  1948.       of three others, the maximum, the product, or can be produced by any
  1949.       arbitrarily complex arithmetic and logical expression. In addition
  1950.  
  1951.                                     30                                    
  1952.  
  1953.  
  1954.  
  1955.  
  1956.                                EASISTAT.DOC                               
  1957.  
  1958.       two special options are provided to make one column the rank of the
  1959.       values in another, or to be the normalised version of those values
  1960.       ie with the column mean subtracted and divided by the column
  1961.       standard deviation. When the column width is too small for the new
  1962.       derived value it is adjusted automatically.
  1963.  
  1964.       In the format set out above "sum" can be an arithmetic expression
  1965.       like (c3+c4)/2 or it can be one of these two special functions of
  1966.       a column, ZED or RANK.
  1967.  
  1968.       ZED column                - (column - mean)/standard deviation
  1969.       RANK column               - rank of values in given column
  1970.  
  1971.       Examples:
  1972.  
  1973.       Select function -  der c3 c4-c5
  1974.  
  1975.       This sets the values in column 3 to be those in column 5 minus
  1976.       those in column 4.
  1977.  
  1978.       Select function -  DERIVE
  1979.       Enter column to derive:   c3
  1980.       Enter formula for new values:   c4+c5
  1981.  
  1982.       If you don't supply the column and expression on the command line
  1983.       then EASISTAT will ask for them. Here is third column becomes the
  1984.       sum of the fourth and fifth.
  1985.  
  1986.       Select function -  der c6 zed c5
  1987.  
  1988.       Values in column 5 have the column mean subtracted and are then
  1989.       divided by the standard deviation so that the values in column 6
  1990.       will now have mean of zero and standard deviation of one.
  1991.  
  1992.       Select function -  der c6 rank c5
  1993.  
  1994.       Now the values in column 6 are derived from the ranks of those in
  1995.       column 5, so that the row containing the lowest value in column 5
  1996.       will have a 1 in column 6, the next lowest a 2, and so on.
  1997.  
  1998.       Advanced tips
  1999.  
  2000.                                     * * * * *
  2001.  
  2002.       4.9  SORT
  2003.  
  2004.       Format: So[rt] [down] [column]
  2005.  
  2006.       The SORT command arranges all the rows in order according to the
  2007.       values in the column specified. If the keyword DOWN is given they
  2008.       are arranged in descending order, otherwise ascending.
  2009.  
  2010.  
  2011.  
  2012.  
  2013.                                     31                                    
  2014.  
  2015.  
  2016.  
  2017.  
  2018.                                EASISTAT.DOC                               
  2019.  
  2020.       Examples:
  2021.  
  2022.       Select function - SORT C3
  2023.  
  2024.       Select function - s d c15
  2025.  
  2026.       Example output:
  2027.  
  2028.                                     * * * * *
  2029.  
  2030.       Comments:
  2031.  
  2032.                                     * * * * *
  2033.  
  2034.       4.10 NARROW
  2035.  
  2036.       Format: N[arrow] condition
  2037.  
  2038.       The NARROW command narrows down the data set to include only
  2039.       those rows for which the given condition applies. All operations
  2040.       will subsequently only apply to the reduced data set except the
  2041.       following: EDIT, TITLES, NEW, DELETE, FORMAT, SORT. The data set
  2042.       remains narrowed until a WIDEN command is issued.
  2043.  
  2044.       Examples:
  2045.  
  2046.       Select function -  NARROW C3=1
  2047.  
  2048.       Only the rows whose first value is 1.
  2049.  
  2050.       Select function -  n row<50
  2051.  
  2052.       The first 49 rows.
  2053.  
  2054.       Select function -  n c3!=9 & c4!=9
  2055.  
  2056.       The rows which do not have a 9 in either the third or fourth
  2057.       column.
  2058.  
  2059.       Example output:
  2060.  
  2061.                                     * * * * *
  2062.  
  2063.       Comments
  2064.  
  2065.                                     * * * * *
  2066.  
  2067.       4.11  WIDEN
  2068.  
  2069.       Format: Wid[en] [condition]
  2070.  
  2071.       The WIDEN command restores the data set after a NARROW command.
  2072.       If no condition is given then all the the rows are included. If a
  2073.       condition is given, then all the rows previously included will
  2074.  
  2075.                                     32                                    
  2076.  
  2077.  
  2078.  
  2079.  
  2080.                                EASISTAT.DOC                               
  2081.  
  2082.       remain, but any others that comply with the condition will be
  2083.       included in addition.
  2084.  
  2085.       Examples:
  2086.  
  2087.       Select function -  WIDEN
  2088.  
  2089.       Includes all rows.
  2090.  
  2091.       Select function -  wid c3=4
  2092.  
  2093.       Adds in rows for which third entry is 4.
  2094.  
  2095.                                     * * * * *
  2096.  
  2097.       Example output:
  2098.  
  2099.                                     * * * * *
  2100.  
  2101.       Comment
  2102.  
  2103.                                     * * * * *
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125.  
  2126.  
  2127.  
  2128.  
  2129.  
  2130.  
  2131.  
  2132.  
  2133.  
  2134.  
  2135.  
  2136.  
  2137.                                     33                                    
  2138.  
  2139.  
  2140.  
  2141.  
  2142.                                EASISTAT.DOC                               
  2143.  
  2144.       Chapter 5              STATISTICAL FUNCTIONS
  2145.  
  2146.       In this chapter the statistical functions available are described.
  2147.       This manual does not seek to replace a statistics textbook, so only
  2148.       minimal guidance will be given as to which tests are appropriate for
  2149.       which data. The field is complex and controversial and if the user
  2150.       is not sure which test to use he should consult a textbook or
  2151.       professional statistician for guidance.
  2152.  
  2153.                                     * * * * *
  2154.  
  2155.       5.1  BASICS
  2156.  
  2157.  
  2158.       Format: B[asics] [ranks] column [if condition]
  2159.  
  2160.       Outputs basic information about the data in a column - the total
  2161.       of the values in the column and the number of items, and the mean
  2162.       mode, median, minimum, maximum, variance, standard deviation and
  2163.       standard error of the mean. Optionally a frequency and rank table
  2164.       of the values may also be produced.
  2165.  
  2166.       Select function -  BASICS C15
  2167.  
  2168.       Select function -  BAS C15 IF ROW<=50
  2169.  
  2170.       Select function -  b ranks c19
  2171.  
  2172.       Example output:
  2173.  
  2174.                                     * * * * *
  2175.  
  2176.       Comments
  2177.  
  2178.                                     * * * * *
  2179.  
  2180.       The standard deviation given is the actual standard deviation of
  2181.       the sample, ie the square root of the sum of the squares of the
  2182.       difference between each value and the mean divided by the number of
  2183.       items. The estimated standard deviation of the population is
  2184.       obtained by dividing the same sum by the number of items minus one.
  2185.       It is almost always the latter figure which should be quoted as "the
  2186.       standard deviation". It represents an attempt to estimate the
  2187.       standard deviation of the measure in the whole population from which
  2188.       the sample was drawn, and seeks to correct for the effects of the
  2189.       limited sample size. Equivalent remarks apply to the values quoted
  2190.       for variance and estimated population variance - generally the
  2191.       latter should be used.
  2192.  
  2193.                                     * * * * *
  2194.  
  2195.  
  2196.  
  2197.  
  2198.  
  2199.                                     34                                    
  2200.  
  2201.  
  2202.  
  2203.  
  2204.                                EASISTAT.DOC                               
  2205.  
  2206.       5.2  CHI-SQUARED
  2207.  
  2208.       Format: C[hisq] [F] [Y] [N] [G]
  2209.                     - F means always do Fisher's exact test
  2210.                     - Y means apply Yates' correction
  2211.                     - N means enter numbers by hand, not from data
  2212.                     - G means produce a graph file and display graph
  2213.  
  2214.       This command sets up a contingency table and performs a
  2215.       chi-squared test on that table to determine the extent to which
  2216.       the values in the table depart from the expected.
  2217.  
  2218.       There are four options. An F will mean that provided a
  2219.       two-by-two table is used Fisher's exact test will always be
  2220.       performed, regardless of the values in the table. EASISTAT
  2221.       automatically performs Fisher's exact test if there is a total of
  2222.       less than 20 items in the table or if the expected value for any
  2223.       cell is less than 5, but specifying F will cause EASISTAT to
  2224.       perform Fisher's test even if these conditions are not met.
  2225.       Specifying Y applies Yates' correction when calculating the
  2226.       differences between observed and expected values. The N option
  2227.       means that instead of composing the contingency table from the
  2228.       data in EASISTAT's data set, the user can enter by hand the
  2229.       values that he wants to appear in each cell of the table. The G
  2230.       option causes a graph file to be written to disk and, provided PCG2
  2231.       is available, displayed. Any, all, or none of the options may be
  2232.       used at once.
  2233.  
  2234.       Example:
  2235.  
  2236.       Select function -  CHISQ
  2237.  
  2238.       - Chi-squared test -
  2239.       Input number of columns:    2
  2240.       Input number of rows:    2
  2241.       Enter condition for column 1: C15<12
  2242.       Enter condition for column 2: C15>=12
  2243.       Enter condition for row A: C3=1
  2244.       Enter condition for row B: C3=2
  2245.  
  2246.       Output:
  2247.  
  2248.                                     * * * * *
  2249.  
  2250.  
  2251.       Comments
  2252.  
  2253.                                     * * * * *
  2254.  
  2255.       Drawing graphs
  2256.  
  2257.       Specifying the G option causes EASISTAT to write a file called
  2258.       GRAPH.ME to disk, and then to run a program called PCG2 to display
  2259.       graphs of the data. PCG2 is provided with another Shareware program
  2260.  
  2261.                                     35                                    
  2262.  
  2263.  
  2264.  
  2265.  
  2266.                                EASISTAT.DOC                               
  2267.  
  2268.       called PC-File:dB - see the section on "Other Shareware programs".
  2269.  
  2270.                                     * * * * *
  2271.  
  2272.       5.3  WILCOXON'S RANK SUM
  2273.  
  2274.       Format: W[ilcoxon] [column]
  2275.  
  2276.       This function performs Wilcoxon's rank sum test (equivalent to
  2277.       Mann-Whitney and Kendall's S), to compare a nonparametric measure
  2278.       between two groups.
  2279.  
  2280.       Example:
  2281.  
  2282.       Select function -  w c15
  2283.       Enter condition for first group:   c3=1
  2284.       Enter condition for second group:   c3=2
  2285.  
  2286.       Output:
  2287.  
  2288.                                     * * * * *
  2289.  
  2290.       The rank sum is taken as an approximation to a normal distribution
  2291.       with mean and standard deviation derived as described by Berry and
  2292.       Armitage. The probability value given is the one-tailed probability
  2293.       of a difference between the groups of such magnitude in the given
  2294.       direction appearing by chance. For low numbers in each group (less
  2295.       than about twenty) the user may prefer to refer to a set of tables
  2296.       quoting the exact probability value for the rank sum dependent on
  2297.       the numbers in each group.
  2298.  
  2299.       5.4  KENDALL'S RANK CORRELATION COEFFICIENT
  2300.  
  2301.       Format: K[endall] [column column]
  2302.  
  2303.       Compares two columns of nonparametric data using Kendall's rank
  2304.       correlation coefficient.
  2305.  
  2306.       Examples:
  2307.  
  2308.       Select function -  KEND C15 C16
  2309.  
  2310.                                     * * * * *
  2311.  
  2312.       The correlation coefficient is sometimes referred to as Kendall's
  2313.       tau. Kendall's S is taken as an approximation to a normal
  2314.       distribution with mean and standard deviation derived as described
  2315.       by Berry and Armitage. The probability value given is the one-tailed
  2316.       probability of Kendall's S of such magnitude assuming this normal
  2317.       distribution. It is the one-tailed probability that a correlation of
  2318.       such magnitude in the direction given could have occurred by chance.
  2319.  
  2320.  
  2321.  
  2322.  
  2323.                                     36                                    
  2324.  
  2325.  
  2326.  
  2327.  
  2328.                                EASISTAT.DOC                               
  2329.  
  2330.       5.5  KOLMOGOROV-SMIRNOV TEST
  2331.  
  2332.       Format: Ko[lmogorov] [column]
  2333.  
  2334.       This compares a nonparametric measure between two groups and tests
  2335.       whether the distribution of values between them is significantly
  2336.       different.
  2337.  
  2338.       Examples:
  2339.  
  2340.       Select function -  ko c15
  2341.       Enter condition for first group:   c3=1
  2342.       Enter condition for second group:   c3=2
  2343.  
  2344.       Select function -  ko
  2345.       Enter column to test:  c15
  2346.       Enter condition for first group:   c5<4
  2347.       Enter condition for second group:   c5>=4
  2348.  
  2349.       If the column supplying the variable is not included in the first
  2350.       line EASISTAT will ask for it.
  2351.  
  2352.       Output:
  2353.  
  2354.       Kolmogorov-Smirnov comparison of two groups using C15 (GHQ)
  2355.       C5<4
  2356.       C5>=4
  2357.       K-S statistic = 0.4302
  2358.       p = 0.0002
  2359.  
  2360.       Comments
  2361.  
  2362.       This test is not described in Berry and Armitage, but it is
  2363.       sometimes used and it should not be hard to find a reference to it
  2364.       in a statistics textbook (our implementation is from Numerical
  2365.       Recipes in C by Press et al). The function of this test is similar
  2366.       to Wilcoxon's rank sum test, except that it does not test whether the
  2367.       values in one group are in general higher or lower than those in the
  2368.       other, but only whether the distributions differ. It might therefore
  2369.       be possible to detect that two distributions with equal means or
  2370.       medians were significantly different because of differences in
  2371.       skewness or kurtosis.
  2372.  
  2373.       5.6  T TEST
  2374.  
  2375.       Format: Tt[est] [P [column column]]
  2376.           or: Tt[est] [column]
  2377.  
  2378.       Performs paired or unpaired Student's T to compare a parametric
  2379.       measure in two groups. For the unpaired test the values all lie
  2380.       in one column (as for the Wilcoxon test). For the paired test two
  2381.       columns are compared, the measures in each row taken to be
  2382.       paired.
  2383.  
  2384.  
  2385.                                     37                                    
  2386.  
  2387.  
  2388.  
  2389.  
  2390.                                EASISTAT.DOC                               
  2391.  
  2392.       Example:
  2393.  
  2394.       Select function -  tt
  2395.       Enter column to test:    c15
  2396.       Enter condition for first group:  c3=1
  2397.       Enter condition for second group:  c3=2
  2398.  
  2399.       Output:
  2400.  
  2401.                                     * * * * *
  2402.  
  2403.       Two tests are performed. One assumes that although the means may
  2404.       differ between the groups, the variances do not. This compares
  2405.       the means of the groups according to a t statistic and outputs a
  2406.       two-tailed probability value for the difference between the two
  2407.       means to be as large as it is by chance. The second test does not
  2408.       make the assumption of equal variances. It takes the difference
  2409.       between the means to approximate a normal distribution and quotes
  2410.       the two-tailed probability for the difference to be as large as
  2411.       it is. This latter test is more controversial.
  2412.  
  2413.       Example:
  2414.  
  2415.       Select function - TTEST P C16 C17
  2416.  
  2417.       (where the P stands for paired)
  2418.  
  2419.       Output:
  2420.  
  2421.                                     * * * * *
  2422.  
  2423.       Each row contains a pair of values, one in each of the columns
  2424.       specified. The mean of the difference between these values is
  2425.       taken to be a t statistic and the probability value quoted is the
  2426.       two-tailed value for a difference as large as this to occur by
  2427.       chance.
  2428.  
  2429.       5.7  LINEAR REGRESSION AND CORRELATION COEFFICIENT
  2430.  
  2431.       Format: R[egress] [column column]
  2432.  
  2433.       Calculates the correlation coefficient (sometimes called Pearson's
  2434.       correlation coefficient) between two parametric measures in different
  2435.       columns, and calculates the linear regression line ("least squares
  2436.       fit") for the second column on the first.
  2437.  
  2438.       Examples:
  2439.  
  2440.       Select function -  REG C15 C16
  2441.  
  2442.       Select function -  r
  2443.       Enter two columns to compare (one on each line):
  2444.       c15
  2445.       c16
  2446.  
  2447.                                     38                                    
  2448.  
  2449.  
  2450.  
  2451.  
  2452.                                EASISTAT.DOC                               
  2453.  
  2454.  
  2455.       Output:
  2456.  
  2457.                                     * * * * *
  2458.  
  2459.       The correlation coefficient, r, is output. The standard error of
  2460.       the gradient of the line SE(b) is output, and this can be taken
  2461.       to be distributed as a t statistic allowing the calculation of
  2462.       confidence limits. It is also used to calculate the significance
  2463.       of the results - the probability value quoted is a two-tailed
  2464.       value for a correlation of such magnitude to occur by chance.
  2465.  
  2466.       5.8  ANOVA
  2467.  
  2468.       Format: A[nova] [column]
  2469.  
  2470.       One-way analysis of variance of a parametric measure between
  2471.       groups.
  2472.  
  2473.                                     * * * * *
  2474.  
  2475.       Example:
  2476.  
  2477.       Select function - A
  2478.  
  2479.       - One-way analysis of variance -
  2480.       Enter column for dependent variable
  2481.       c15
  2482.       Input number of groups:   4
  2483.       Enter condition for group A:    c5=1
  2484.       Enter condition for group B:    c5=2
  2485.       Enter condition for group C:    c5=3
  2486.       Enter condition for group D:    c5>3
  2487.  
  2488.       Output:
  2489.  
  2490.                                     * * * * *
  2491.  
  2492.       The analysis of variance outputs an overall significance
  2493.       representing the probability that all the group means could have
  2494.       varied so much by chance. It is a two-tailed test. It also
  2495.       computes a t statistic and two-tailed probability value for the
  2496.       difference between the means for each pair of groups. This latter
  2497.       differs from performing an ordinary unpaired t test between the
  2498.       two groups only in that the whole sample is used to provide an
  2499.       estimate of the overall variance of the measure, rather than just
  2500.       relying on the values in the pair of groups under consideration.
  2501.  
  2502.       5.9  MULTIPLE REGRESSION
  2503.  
  2504.       Format: M[ultiple] [column]
  2505.  
  2506.       Performs multiple linear regression with several independent
  2507.       variables and one dependent variable.
  2508.  
  2509.                                     39                                    
  2510.  
  2511.  
  2512.  
  2513.  
  2514.                                EASISTAT.DOC                               
  2515.  
  2516.  
  2517.                                     * * * * *
  2518.  
  2519.       Example:
  2520.  
  2521.       Select function - m
  2522.  
  2523.       - Multiple linear regression -
  2524.       Enter column for dependent variable
  2525.       c27
  2526.       Input number of independent variables:   4
  2527.       c18
  2528.       c19
  2529.       c20
  2530.       c21
  2531.  
  2532.       Output:
  2533.  
  2534.                                     * * * * *
  2535.  
  2536.       This test outputs a multiple correlation coefficient and the
  2537.       best-fitting linear regression equation using all the independent
  2538.       variables. The coefficients for each variable are given and their
  2539.       standard errors. These are used to produce a t statistic and
  2540.       two-tailed significance for the independent correlation of each
  2541.       variable with the dependent variable. Note that this will vary
  2542.       according to which other variables are included in the analysis.
  2543.       An overall two-tailed probability derived from an F ratio of
  2544.       variances is also given, representing the probability of such a
  2545.       multiple correlation coefficient occurring by chance.
  2546.  
  2547.       5.10  COMPONENT ANALYSIS
  2548.  
  2549.       Format: Co[mponent] [number of variables]
  2550.  
  2551.       Performs principle component analysis between a number of
  2552.       variables.
  2553.  
  2554.                                     * * * * *
  2555.  
  2556.       Example:
  2557.  
  2558.       Select function - co
  2559.  
  2560.       - Principle component analysis -
  2561.       Enter number of columns to analyse:  4
  2562.       Input 4 columns (one on each line):
  2563.       c19
  2564.       c20
  2565.       c21
  2566.       c22
  2567.       Input lower limit of contribution to variance to include component
  2568.       into main table (0 for all, 1 for none):  0.05
  2569.  
  2570.  
  2571.                                     40                                    
  2572.  
  2573.  
  2574.  
  2575.  
  2576.                                EASISTAT.DOC                               
  2577.  
  2578.       Output:
  2579.  
  2580.                                     * * * * *
  2581.  
  2582.       Principle components are derived (there is no facility to rotate
  2583.       them). The contribution of each to the overall variance is
  2584.       output, as is the correlation matrix between them and the original
  2585.       variables.
  2586.  
  2587.       All components contributing more than a certain fraction of the
  2588.       overall variance selected by the user are incorporated into the main
  2589.       data table as new columns at the right-hand edge of the table. They
  2590.       are titled Co1, Co2, etc.
  2591.  
  2592.                                     * * * * *
  2593.  
  2594.       The orginal variables are not normalised before the analysis
  2595.       (they are not altered to have unit variance). The user may do
  2596.       this himself if he wishes, otherwise variables with a large
  2597.       variance will produce a proportionately large contribution to the
  2598.       analysis.
  2599.  
  2600.  
  2601.  
  2602.  
  2603.  
  2604.  
  2605.  
  2606.  
  2607.  
  2608.  
  2609.  
  2610.  
  2611.  
  2612.  
  2613.  
  2614.  
  2615.  
  2616.  
  2617.  
  2618.  
  2619.  
  2620.  
  2621.  
  2622.  
  2623.  
  2624.  
  2625.  
  2626.  
  2627.  
  2628.  
  2629.  
  2630.  
  2631.  
  2632.  
  2633.                                     41                                    
  2634.  
  2635.  
  2636.  
  2637.  
  2638.                                EASISTAT.DOC                               
  2639.  
  2640.       Chapter 6           FILE MANAGEMENT FUNCTIONS
  2641.  
  2642.       6.1  DATA
  2643.  
  2644.       Format: d[ata] [SAVE] [filename or THIS]
  2645.  
  2646.       Reads in data from an ASCII file with the values laid out in columns
  2647.       with one row of titles above. To save the data to disk the keyword
  2648.       SAVE is used before the filename is given.
  2649.  
  2650.       NB If you are working with a narrowed down data set then only the
  2651.       narrowed data will be saved. Issue the WIDEN command first if you
  2652.       wish to save all the data.
  2653.  
  2654.       The data file is simply an ASCII file containing a table of
  2655.       numerical values arranged in columns beneath one row of titles which
  2656.       determines the width of each column. The titles consist of groups of
  2657.       letters or numbers separated by spaces (NB not tabs). There must be
  2658.       no blank rows in the table. If a blank row or one beginning with the
  2659.       word "END" is found then that will be taken as the end of the data.
  2660.       This format allows transfer between EASISTAT data files and files
  2661.       used by other software, including spreadsheets, databases, word
  2662.       processors and other statistics packages.
  2663.  
  2664.       Example datafile (see also EXAMPLE.DAT):
  2665.  
  2666.       Age Sex GHQ
  2667.       20   1  12
  2668.        29 2    13
  2669.       22  2   14
  2670.       end
  2671.  
  2672.       NB "End" is optional if that is the end of the file. The column
  2673.       positions are defined by the left-most letter of each label (A,S,G).
  2674.       Blank values will be taken as zero.
  2675.  
  2676.       Examples:
  2677.  
  2678.       DATA EXAMPLE.DAT
  2679.  
  2680.       Reads data from file EXAMPLE.DAT
  2681.  
  2682.       d s fixed.dat
  2683.  
  2684.       Saves data to a file called FIXED.DAT.
  2685.  
  2686.       DATA THIS
  2687.  
  2688.                                     * * * * *
  2689.  
  2690.       Example command file to input and format data:
  2691.  
  2692.                                     * * * * *
  2693.  
  2694.  
  2695.                                     42                                    
  2696.  
  2697.  
  2698.  
  2699.  
  2700.                                EASISTAT.DOC                               
  2701.  
  2702.       To produce a suitable file from a word processor:
  2703.  
  2704.       Just write out the data in columns as described above, then save it
  2705.       to disc. If your word processor has an option to save the text as
  2706.       "ASCII" or "DOS text" then use this option.
  2707.  
  2708.       To produce a suitable file from Lotus 1-2-3:
  2709.  
  2710.       1. Select "Print", select print to "File".
  2711.  
  2712.       2. Select the entire range of values as the "Range" to be printed,
  2713.       with a one line set of titles above if you have one. There must be a
  2714.       title line above the values in the datafile, so if you do not print
  2715.       one out from 1-2-3 then you must add one yourself with a
  2716.       wordprocessor afterwards.
  2717.  
  2718.       3. Select "Options".
  2719.  
  2720.       4. Select margins and set "Left" margin to 0 and "Right" to 240.
  2721.  
  2722.       5. Select "Other". Select "Unformatted" output.
  2723.  
  2724.       6. Go back to print (by selecting "Quit") and select "Go".
  2725.  
  2726.                                     * * * * *
  2727.  
  2728.       6.2  OUTPUT
  2729.  
  2730.       Format: O[utput] [filename or close]
  2731.  
  2732.       The OUTPUT command copies all of the output from EASISTAT that
  2733.       appears in the top window of the screen to a file or to the printer.
  2734.       This allows you to save your results and study them later, and means
  2735.       you can use a word processor to incorporate them into a document
  2736.       without having to type them all in again. When you no longer wish to
  2737.       send output to the file the OUTPUT CLOSE option closes the file and
  2738.       no further output is copied. OUTPUT writes on to the end of a file,
  2739.       so if you choose to write to a file which already exists whatever
  2740.       was previously in that file will be left as it is and the new
  2741.       results will be tagged on at the end. If you have a printer hooked
  2742.       up to your computer you should be able to print out to it directly
  2743.       by typing OUTPUT PRN.
  2744.  
  2745.       Examples:
  2746.  
  2747.       Select function -  OUTPUT ANOV0924.OUT
  2748.  
  2749.       This command copies output into the file ANOV0924.OUT. If the
  2750.       file does not exist then it will be created. If it already exists
  2751.       then the new output will be appended to the old file.
  2752.  
  2753.                                     * * * * *
  2754.  
  2755.  
  2756.  
  2757.                                     43                                    
  2758.  
  2759.  
  2760.  
  2761.  
  2762.                                EASISTAT.DOC                               
  2763.  
  2764.       Select function -  OUTPUT CLOSE
  2765.  
  2766.       Output will no longer be copied to the file or printer until
  2767.       another OUTPUT command is given.
  2768.  
  2769.       Example output:
  2770.  
  2771.                                     * * * * *
  2772.  
  2773.       Comments:
  2774.  
  2775.                                     * * * * *
  2776.  
  2777.       Advanced tip
  2778.  
  2779.                                     * * * * *
  2780.  
  2781.       6.3  INPUT
  2782.  
  2783.       Format: I[input] [filename or close]
  2784.  
  2785.       Causes a command file to be read in. Command files contain commands
  2786.       exactly as they would be typed at the keyboard.
  2787.  
  2788.       Example:
  2789.  
  2790.       Select function -  i
  2791.       Enter name of file to read input from (KEY for keyboard): demo
  2792.  
  2793.       The file on your disk called DEMO is a command file. Please study it
  2794.       to see how it works. Note that you can also run a command file when
  2795.       you first run EASISTAT by typing eg EASISTAT DEMO. This causes
  2796.       EASISTAT to read in the command file called DEMO. This facility
  2797.       means EASISTAT jobs can be run as part of a batch file.
  2798.  
  2799.                                     * * * * *
  2800.  
  2801.       6.4  LOG
  2802.  
  2803.       Format: Lo[g] [filename or close]
  2804.  
  2805.       Produces command files by copying keyboard input to a file. This log
  2806.       file can then be read in again as a command file, or it can be
  2807.       edited and elaborated first. This is a very useful way to get
  2808.       started creating command files.
  2809.  
  2810.       Examples:
  2811.  
  2812.       Select function - log stat0927.log
  2813.  
  2814.       Copies all commands into STAT0927.LOG.
  2815.  
  2816.  
  2817.  
  2818.  
  2819.                                     44                                    
  2820.  
  2821.  
  2822.  
  2823.  
  2824.                                EASISTAT.DOC                               
  2825.  
  2826.       Select function - log close
  2827.  
  2828.       Closes file so that no further commands will be copied. Like OUTPUT,
  2829.       LOG writes onto the end of a pre-existing file.
  2830.  
  2831.       6.5  ECHO
  2832.  
  2833.       Format: E[cho] text
  2834.  
  2835.       Echoes input to output, allowing comments and titles to appear in
  2836.       output files, or for command files to explain themselves on
  2837.       screen as they run.
  2838.  
  2839.       Example: e    The title of the next test is this
  2840.  
  2841.       See the DEMO file for examples of the use of the ECHO command (the E
  2842.       at the start of most lines is invoking ECHO).
  2843.  
  2844.       6.6  PAUSE
  2845.  
  2846.       Format: P[ause]
  2847.  
  2848.       Produces a pause in a command file.
  2849.  
  2850.       Example:
  2851.  
  2852.       p
  2853.  
  2854.       Ouput:
  2855.  
  2856.                                     * * * * *
  2857.  
  2858.  
  2859.  
  2860.  
  2861.  
  2862.  
  2863.  
  2864.  
  2865.  
  2866.  
  2867.  
  2868.  
  2869.  
  2870.  
  2871.  
  2872.  
  2873.  
  2874.  
  2875.  
  2876.  
  2877.  
  2878.  
  2879.  
  2880.  
  2881.                                     45                                    
  2882.  
  2883.  
  2884.  
  2885.  
  2886.                                EASISTAT.DOC                               
  2887.  
  2888.       Chapter 7                   SPECIAL FUNCTIONS
  2889.  
  2890.       7.1  HELP
  2891.  
  2892.       Format: H[elp]
  2893.  
  2894.       The HELP function simply outputs a list of all the functions
  2895.       available, together with a brief reminder of their syntax. You
  2896.       may want to use the OUTPUT command to print this list out on
  2897.       paper so you can refer to it when you do not have the manual
  2898.       handy.
  2899.  
  2900.       Example:
  2901.  
  2902.       Select function -  h
  2903.  
  2904.                                     * * * * *
  2905.  
  2906.  
  2907.       7.2  SYSTEM
  2908.  
  2909.       Format: Sy[stem] [command or program]
  2910.  
  2911.       This allows you to issue commands to the operating system or even
  2912.       run other programs, provided there is enough memory available.
  2913.  
  2914.       Example:
  2915.  
  2916.       Select function - sys dir
  2917.  
  2918.       Produces a directory listing.
  2919.  
  2920.       When the command has been executed then EASISTAT will wait for a
  2921.       keypress before continuing.
  2922.  
  2923.       Comments
  2924.  
  2925.                                     * * * * *
  2926.  
  2927.       7.3  SCREEN
  2928.  
  2929.       Format: S[creen]
  2930.  
  2931.       This simply redraws the EASISTAT screen if an error has occurred
  2932.       which has messed it up.
  2933.  
  2934.       Example: SCR
  2935.  
  2936.       7.4  ARITHMETIC
  2937.  
  2938.       Format: Ar[ithmetic] [sum]
  2939.  
  2940.       This function evaluates arithmetical and logical expressions.
  2941.  
  2942.  
  2943.                                     46                                    
  2944.  
  2945.  
  2946.  
  2947.  
  2948.                                EASISTAT.DOC                               
  2949.  
  2950.       Examples:
  2951.  
  2952.       Select function - ARITH
  2953.       5 +5*38
  2954.       2.6/7+(3.5-.6)pow(0.5)
  2955.  
  2956.       Select function - ar 5 +5*38
  2957.  
  2958.       Or we can use the probability look-up functions, e.g. to find the
  2959.       significance of a Chi-squared of 13.6 with 2 degrees of freedom:
  2960.  
  2961.       Select function - ARITH
  2962.       13.6PX2
  2963.  
  2964.                                     * * * * *
  2965.  
  2966.       7.5  QUIT
  2967.  
  2968.       Format: Q[uit]
  2969.  
  2970.       Quits EASISTAT.
  2971.  
  2972.       Example:
  2973.  
  2974.       Select function -  q
  2975.       Quit EASISTAT - sure?
  2976.       y
  2977.  
  2978.  
  2979.  
  2980.  
  2981.  
  2982.  
  2983.  
  2984.  
  2985.  
  2986.  
  2987.  
  2988.  
  2989.  
  2990.  
  2991.  
  2992.  
  2993.  
  2994.  
  2995.  
  2996.  
  2997.  
  2998.  
  2999.  
  3000.  
  3001.  
  3002.  
  3003.  
  3004.  
  3005.                                     47                                    
  3006.  
  3007.  
  3008.  
  3009.  
  3010.                                EASISTAT.DOC                               
  3011.  
  3012.       Chapter 8                ERROR MESSAGES AND BUGS
  3013.  
  3014.       8.1  LIST OF ERROR MESSAGES WITH THEIR MEANINGS
  3015.  
  3016.                                     * * * * *
  3017.  
  3018.       8.2  WHAT TO DO IF YOU GET AN ERROR MESSAGE
  3019.  
  3020.       There are essentially two different kinds of error message. One
  3021.       is caused by the user making a mistake in what he types in - a
  3022.       syntax error, a spelling mistake or giving the wrong name or
  3023.       pathname for a file. The other kind is when the computer runs out
  3024.       of memory or runs into mathematical problems like trying to
  3025.       divide by zero. Things are not quite so clear-cut, because in
  3026.       fact the commonest reason for the program to produce the second
  3027.       kind of error message is also because the user told it to do
  3028.       something silly, like make a chi-squared table with zero rows. We
  3029.       have tried to trap most of these errors, but a few have got through.
  3030.  
  3031.       If you get an error message, first check carefully that you have
  3032.       not made a typing mistake. If not, and especially if you get one
  3033.       of the "out of memory" messages, then it may be that you are
  3034.       exceeding the program's capacity. Although we have tried to guard
  3035.       against it, there is a risk that the program may "hang up", which
  3036.       means that absolutely nothing at all happens when you push any of
  3037.       the keys, except possibly for a beeping noise. Should this happen
  3038.       there will be nothing you can do except reset the computer or
  3039.       turn it off and on again. Because of the risk of this, if you get
  3040.       an error message which you cannot otherwise explain we advise you
  3041.       immediately to save your data to a file and to close your output
  3042.       and log files. Do not save your data to the same file that you
  3043.       read it from, but to a new file with a different name. All these
  3044.       precautions are to minimise the risk of an error in your program
  3045.       damaging ("corrupting") any of your files or leaving you stuck
  3046.       unable to save your data.
  3047.  
  3048.  
  3049.       8.3  RUNNING OUT OF MEMORY
  3050.  
  3051.       If you get an "Out of memory" message the most likely reason is
  3052.       not that the computer is running out of memory, but that you have
  3053.       asked it to do something silly which requires zero memory, so
  3054.       check this first. If you get an "Out of stack memory" message
  3055.       then it may be that you are asking the program to perform an
  3056.       especially complicated calculation, though to be honest we don't
  3057.       think that this is likely to happen. However should it occur
  3058.       first check that you have not made a mistake and then try to
  3059.       simplify what you are asking the program to do, perhaps by doing
  3060.       it in stages.
  3061.  
  3062.                                     * * * * *
  3063.  
  3064.       EASISTAT tries very hard to use as much as of the computer's
  3065.       memory as it can, and to do this it ends up putting things in all
  3066.  
  3067.                                     48                                    
  3068.  
  3069.  
  3070.  
  3071.  
  3072.                                EASISTAT.DOC                               
  3073.  
  3074.       sorts of nooks and crannies. If you find that you are running out
  3075.       of memory with a particular function it is possible that the
  3076.       following procedure may help:
  3077.  
  3078.                                     * * * * *
  3079.  
  3080.       8.4  BUGS AND CRASHES
  3081.  
  3082.       Sometimes if there is something wrong with EASISTAT or one of the
  3083.       other programs your computer is running at the same time then
  3084.       your computer can "hang up" or "crash". If the computer hangs up
  3085.       or crashes then none of the keys you press will have any effect,
  3086.       except sometimes to make a beeping noise. If this happens you are
  3087.       probably going to have to reset the computer, or turn it off and
  3088.       on again. Your computer will not be damaged in any way, but any
  3089.       data or results not saved will be lost. Before you do this check
  3090.       the following points:
  3091.  
  3092.       1. Make sure the program is not just performing a long
  3093.       calculation.
  3094.  
  3095.       2. Make sure you have not tried to send something to the printer
  3096.       or "PRN" without having the printer connected, turned on and on
  3097.       line. If you have then you may have to wait a couple of minutes
  3098.       for the printer to "time out" and display the "Not ready writing
  3099.       device PRN" message.
  3100.  
  3101.       3. Make sure you have not tried to read or write to a disk which
  3102.       is not in a drive or which has the drive door open. If you have
  3103.       done this then it should time out quite quickly and give you an
  3104.       error message, but it's worth checking.
  3105.  
  3106.       If none of these things have happened then the program has
  3107.       crashed and you will have to reset the computer and start again.
  3108.       Try to see if you can see what caused the crash.
  3109.  
  3110.       Bugs
  3111.  
  3112.       A "bug" is something wrong with the way that the program is
  3113.       written which causes it to behave in a way other than that
  3114.       intended or expected. We aim to correct as many bugs in EASISTAT
  3115.       as possible, and we aim to inform users of any uncorrected bugs
  3116.       of which we are aware. However in such a large and complex
  3117.       program it is always possible that some bugs may have crept
  3118.       through of which we are unaware, and so we ask users to inform us
  3119.       if they find one of these so that it can be corrected or at least
  3120.       so that other users can be warned of it. Sometimes a program can
  3121.       behave in the way that the programmer wants it to, but that may
  3122.       not be the way in which a particular user expects it to behave.
  3123.       This turns into an argument about whether something is a "bug" or
  3124.       a "feature". In this manual we have tried to clarify as far as
  3125.       possible exactly what the program does, especially where it
  3126.       behaves in a way which might not be expected.
  3127.  
  3128.  
  3129.                                     49                                    
  3130.  
  3131.  
  3132.  
  3133.  
  3134.                                EASISTAT.DOC                               
  3135.  
  3136.       Known bugs
  3137.  
  3138.       See the section on "Operator precedence" for a description of a
  3139.       bug in the way logical and arithmetic expressions are handled.
  3140.  
  3141.       Sometimes the error message produced by EASISTAT does not give a
  3142.       very clear picture of what the actual problem is.
  3143.  
  3144.       If the program runs out of room when writing a file to disk then
  3145.       it may not inform you, but leave the file incomplete. Therefore
  3146.       always make sure there is plenty of room available on disk (by
  3147.       using the DIR command available from the operating system).
  3148.  
  3149.       It is possible for mathematical overflow errors to occur when
  3150.       performing some of the significance tests, in particular those in
  3151.       which a value is divided by its standard error and the result is
  3152.       taken to approximate a t statistic as is done for the regression
  3153.       tests. With large numbers of values the significance test can then
  3154.       amount to for example the probability value of t = 60 with 1000
  3155.       degrees of freedom. This is clearly highly significant, but
  3156.       attempting to calculate the exact probability cause a mathematical
  3157.       error. The "correct" value of 0.0000 will still be given, but an
  3158.       error will be reported. This is harmless, but disconcerting if one
  3159.       does not know the reason for it.
  3160.  
  3161.       If you keep trying to add rows or columns until EASISTAT runs out of
  3162.       memory so that the data table reaches its maximum size, then running
  3163.       the data editor immediately can sometimes cause the computer to
  3164.       crash. The reason for this is obscure. It only occurs if you attempt
  3165.       to exceed the program's capacity (with thirty columns well over
  3166.       seventy thousand data points can be accommodated in around two
  3167.       thousand five hundred rows), and it seems only to happen if the EDIT
  3168.       command is the first command given after the "Out of memory" error
  3169.       message. Should you get such a message we advise you to first issue
  3170.       an innocuous command like TITLES and to make sure you save any
  3171.       unsaved data.
  3172.  
  3173.       Unknown bugs
  3174.  
  3175.       Apart from causing the computer to hang up, other symptoms of
  3176.       bugs are that the program produces long strings of meaningless
  3177.       characters and beeps, or very large long numbers which are
  3178.       obviously nonsensical. Bugs may also simply produce incorrect
  3179.       answers. We are not aware of any that do this, but if you suspect
  3180.       their existence then please let us know at once.
  3181.  
  3182.       We would like to fix any bugs in the the program, so please write
  3183.       to us to let us know of any circumstances which produce a crash
  3184.       or garbage output. If you cannot see why the program should have
  3185.       gone wrong at this point then please supply us also with the
  3186.       following information (on a disk if possible - we will return
  3187.       it):
  3188.  
  3189.       1. Contents of your data file.
  3190.  
  3191.                                     50                                    
  3192.  
  3193.  
  3194.  
  3195.  
  3196.                                EASISTAT.DOC                               
  3197.  
  3198.  
  3199.       2. Exact sequence of commands leading to crash.
  3200.  
  3201.       3. Make and model of your computer, plus peripheral devices.
  3202.  
  3203.       4. Contents of you AUTOEXEC.BAT and CONFIG.SYS files, and the
  3204.       names of any memory-resident programs you have loaded.
  3205.  
  3206.       5. Version of DOS (find this out by entering VER at the DOS
  3207.       prompt).
  3208.  
  3209.       6. Version of EASISTAT (displayed on title screen).
  3210.  
  3211.  
  3212.  
  3213.  
  3214.  
  3215.  
  3216.  
  3217.  
  3218.  
  3219.  
  3220.  
  3221.  
  3222.  
  3223.  
  3224.  
  3225.  
  3226.  
  3227.  
  3228.  
  3229.  
  3230.  
  3231.  
  3232.  
  3233.  
  3234.  
  3235.  
  3236.  
  3237.  
  3238.  
  3239.  
  3240.  
  3241.  
  3242.  
  3243.  
  3244.  
  3245.  
  3246.  
  3247.  
  3248.  
  3249.  
  3250.  
  3251.  
  3252.  
  3253.                                     51                                    
  3254.  
  3255.  
  3256.  
  3257.  
  3258.                                EASISTAT.DOC                               
  3259.  
  3260.       Chapter 9                   ACKNOWLEDGMENTS
  3261.  
  3262.  
  3263.       EASISTAT programmed by Dave Curtis. Thanks to Allan Curtis for his
  3264.       valuable support and advice. The statistical functions are
  3265.       implemented from descriptions in Statistical Methods in Medical
  3266.       Research by P. Armitage and G. Berry, 2nd edition, Blackwell
  3267.       Scientific Publications, 1987 (highly recommended). The program was
  3268.       written in C and C++ and was compiled with the Zortech compiler
  3269.       (highly recommended). The incomplete beta function and matrix
  3270.       decomposition routines were derived from Numerical Recipes in C by
  3271.       W. H. Press, B. P. Flannery, S. A. Teukolsky and W. T. Vettering,
  3272.       Cambridge University Press, 1988 (highly recommended).
  3273.  
  3274.       DESQview is a trademark of Quarterdeck Office Systems. MS and
  3275.       Microsoft Windows are trademarks of Microsoft Corporation. IBM and
  3276.       PC are trademarks of International Business Machines Corporation.
  3277.       PC-Write is a trademark of Quicksoft Incorporated. PC-File and
  3278.       PC-File:dB are trademarks of Buttonware Incorporated. Lotus 1-2-3 is
  3279.       a trademark of Lotus Development Corporation.
  3280.  
  3281.  
  3282.  
  3283.  
  3284.       We would welcome any comments, criticisms, or suggestions for
  3285.       improvements. New functions will be continually added, and if
  3286.       anyone has any special requests we will do our best to accommodate
  3287.       them.
  3288.  
  3289.  
  3290.  
  3291.       Please display the following notice in your department and pass
  3292.       copies of the program on to your colleagues. Thank you.
  3293.  
  3294.  
  3295.  
  3296.                                  Good luck.
  3297.                                                       ARC Scientific Ltd.
  3298.                                                       December 1988
  3299.  
  3300.  
  3301.       STOP PRESS: A prototype version of EASIPLOT, a graph
  3302.       drawing package, is now available for use with
  3303.       EASISTAT. It is also available as Shareware and is
  3304.       sent out free with EASISTAT to all registered users.
  3305.       The documentation for EASIPLOT is contained in a
  3306.       separate file called EASIPLOT.DOC. By default,
  3307.       EASIPLOT now uses EASIPLOT and not PCG2 to draw its
  3308.       graphs. 
  3309.  
  3310.  
  3311.  
  3312.  
  3313.  
  3314.  
  3315.  
  3316.                                     52                                    
  3317.  
  3318.  
  3319.  
  3320.  
  3321.  
  3322.  
  3323.  
  3324.  
  3325.  
  3326.                                    EASISTAT
  3327.  
  3328.  
  3329.  
  3330.  
  3331.       EASISTAT is a statistics package that will run on IBM PC's and
  3332.       compatibles. It performs simple data management and statistics and
  3333.       includes the following tests:
  3334.  
  3335.       Mean, mode, median, standard deviation, variance, standard error of
  3336.       mean, Chi-squared test, Fisher's exact test, Wilcoxon's rank sum,
  3337.       Kolmogorov-Smirnov, Kendall's rank correlation, T-test, analysis of
  3338.       variance, linear regression, correlation coefficient, multiple
  3339.       linear regression and principle component analysis. Calculator and
  3340.       table look-up functions are also available. A total of about seventy
  3341.       thousand data points can be accommodated in practically any number
  3342.       of rows or columns. A variety of graph types can also be displayed.
  3343.  
  3344.  
  3345.  
  3346.  
  3347.  
  3348.       EASISTAT is distributed as Shareware, which means that anyone who
  3349.       wants a copy to have a look at can have one free. If you would like
  3350.       a copy please contact:
  3351.  
  3352.  
  3353.  
  3354.  
  3355.  
  3356.                   ------------------------------------------
  3357.  
  3358.  
  3359.  
  3360.  
  3361.       
  3362.                           ORDER FORM
  3363.  
  3364.  
  3365.        To:  ARC Scientific Limited
  3366.             257 Woodstock Road
  3367.             Oxford OX2 7AE.
  3368.  
  3369.        (Telephone 0865 310167)
  3370.  
  3371.        Please supply
  3372.  
  3373.        ..... Copies of EASISTAT - disk size 3.5" .... 5.25" ....
  3374.                    (now includes EASIPLOT)
  3375.        ..... Copies of CPMDISK  - disk size 3.5" .... 5.25" ....
  3376.  
  3377.        at 30.00 pounds sterling or 55 US dollars each
  3378.                                           (incl. VAT & shipping)
  3379.  
  3380.  
  3381.        Payment enclosed .................
  3382.  
  3383.  
  3384.        Name  ...................................................
  3385.  
  3386.        Company .................................................
  3387.  
  3388.        Address .................................................
  3389.  
  3390.        .........................................................
  3391.  
  3392.        .........................................................
  3393.  
  3394.        .........................................................
  3395.  
  3396.        .........................................................
  3397.  
  3398.        Telephone number ........................................
  3399.  
  3400.  
  3401.  
  3402.  
  3403.  
  3404.  
  3405.                          ARC SCIENTIFIC LIMITED
  3406.                            257 Woodstock Road
  3407.                              Oxford OX2 7AE
  3408.                                  ENGLAND
  3409.  
  3410.                                             Telephone 0865 310167
  3411.  
  3412.  
  3413.                               SALES INVOICE
  3414.  
  3415.                         VAT Regd No.  490 6165 37
  3416.  
  3417.  
  3418.          To:   Name ................................................
  3419.  
  3420.                Company..............................................
  3421.  
  3422.                Address..............................................
  3423.  
  3424.                .....................................................
  3425.  
  3426.                .....................................................
  3427.  
  3428.                ........................Postcode.....................
  3429.  
  3430.  
  3431.  
  3432.                             Date and tax point  ...................
  3433.  
  3434.        _____________________________________________________________
  3435.                   |                        |   Price   |
  3436.          Number   | Description            |(inclusive | Total price
  3437.        of copies  |                        |  of VAT   |
  3438.                   |                        |& shipping)|
  3439.        ___________|________________________|___________|____________
  3440.                   |                        |           |
  3441.                   |                        | 30 pounds |
  3442.                   | EASISTAT  program      |  sterling |
  3443.                   | (with EASIPLOT)        |    or     |
  3444.                   |                        |   55 US   |
  3445.                   | CPMDISK   program      |  dollars  |
  3446.                   |                        |   each    |
  3447.        ___________|________________________|___________|____________
  3448.                                                        |
  3449.                                               TOTAL    |
  3450.                                                        |____________
  3451.  
  3452.  
  3453.