home *** CD-ROM | disk | FTP | other *** search
/ Between Heaven & Hell 2 / BetweenHeavenHell.cdr / 500 / 474 / ems.arc / PC-EMS.DOC next >
Text File  |  1985-09-05  |  5KB  |  169 lines

  1.  
  2.  
  3.  
  4.  
  5.                                     PC-EMS
  6.                    A Program for Sample Size Determinations
  7.                                  Version 1.0
  8.                               September 2, 1985
  9.  
  10.  
  11.                                Gerard E. Dallal
  12.  
  13.                 USDA Human Nutrition Research Center on Aging
  14.                              at Tufts University
  15.                             711 Washington Street
  16.                               Boston, MA  02111
  17.  
  18.                                      and
  19.  
  20.                      Tufts University School of Nutrition
  21.                               132 Curtis Street
  22.                               Medford, MA 02155
  23.  
  24.  
  25.  
  26.         PC-EMS uses the algorithm of  Cornfield  and  Tukey(1956)  to
  27.         calculate  tables  of  Expected  Mean  Squares  for  balanced
  28.         experiments.
  29.  
  30.  
  31.         Models are entered as per the following example:
  32.  
  33.                               T,G,S(G),TG,TS(G)
  34.         or
  35.                           T + G + S(G) + TG + TS(G)
  36.  
  37.         where
  38.                 T and G are the main effects of T and G,
  39.                 S(G) is the effect of S within G,
  40.                 TG is the interaction between T and G, and
  41.                 TS(G) is the interaction between T and S(G).
  42.  
  43.         Terms are separated  by  '+'  or  ','.  Imbedded  blanks  are
  44.         optional.  The  grand  mean  and  error  term  are NOT stated
  45.         explicitly.
  46.  
  47.  
  48.  
  49.  
  50.                                    NOTICE
  51.  
  52.         Program and documentation copyright 1985 by Gerard E. Dallal.
  53.         Reproduction  of  material  for  non-commercial  purposes  is
  54.         permitted,  without charge,  provided that suitable reference
  55.         is made to PC-EMS and its author.
  56.  
  57.  
  58.  
  59.  
  60.         Neither  PC-EMS  nor  its documentation should be modified in
  61.         any way without permission from the author,  except for those
  62.         changes   that  are  essential  to  move  PC-EMS  to  another
  63.         computer.
  64.  
  65.         Please acknowledge PC-EMS in any  manuscript  that  uses  its
  66.         calculations.
  67.  
  68.  
  69.  
  70.  
  71.                                  OPERATION
  72.  
  73.         1.  Each factor is  represented  by  label  consisting  of  a
  74.             single  letter.  PC-EMS  distinguishes  between upper and
  75.             lower case letters.
  76.  
  77.         2.  Interactions are denoted by placing the  labels  for  the
  78.             appropriate  factors side-by-side,  as in AB.  Do NOT use
  79.             asterisks,  as in A*B.  The asterisk will be  interpreted
  80.             as a factor label.
  81.  
  82.         3.  Nested   effects   are   indicated   using  the  standard
  83.             convention, i.e., S(G) denotes S within G.
  84.  
  85.  
  86.  
  87.  
  88.                                  LIMITATIONS
  89.  
  90.         1.  The model must fit on one line and contain no  more  than
  91.             79 characters including imbedded blanks.
  92.  
  93.         2.  A  model  may  contain  no  more  than  10  factors (main
  94.             effects) or 50 terms.
  95.  
  96.         3.  A single term may contain  no  more  than  10  characters
  97.             (including parentheses).
  98.  
  99.  
  100.  
  101.  
  102.                                  INSTALLATION
  103.  
  104.         PC-SIZE  is  written  for  the IBM-PC.  Installation on a new
  105.         computer may entail modifying the following statements:
  106.  
  107.         The first DATA statement:
  108.  
  109.                       IIN -- input unit number (screen)
  110.                      IOUT -- output unit number (screen)
  111.                     IWOUT -- save file unit number
  112.  
  113.  
  114.  
  115.  
  116.         The  OPEN  statement  for the save file just before statement
  117.         10.
  118.  
  119.  
  120.  
  121.  
  122.                                    EXAMPLE
  123.  
  124.        Models are entered in the form:
  125.  
  126.                    A + B(A) + C + AC + B(A)C
  127.  
  128.        Terms must be separated by '+' or ',' ;  blanks are optional.
  129.        Grand mean and error term are NOT stated explicitly.
  130.  
  131.        Enter the model:
  132.  
  133.        T,G,S(G),TG,TS(G)
  134.  
  135.        Enter the number of levels of T :     3
  136.        Enter the number of levels of G :     2
  137.        Enter the number of levels of S :     4
  138.  
  139.        Is the factor T fixed (F) or random (R)?  F
  140.        Is the factor G fixed (F) or random (R)?  F
  141.        Is the factor S fixed (F) or random (R)?  R
  142.  
  143.        Enter the number of observations per cell:     1
  144.  
  145.        EMS(T)          =   1 * error      +   1 * TS(G)      +   8 * T
  146.  
  147.        EMS(G)          =   1 * error      +   3 * S(G)       +  12 * G
  148.  
  149.        EMS(S(G))       =   1 * error      +   3 * S(G)
  150.  
  151.        EMS(TG)         =   1 * error      +   1 * TS(G)      +   4 * TG
  152.  
  153.        EMS(TS(G))      =   1 * error      +   1 * TS(G)
  154.  
  155.        EMS(error)      =   1 * error
  156.  
  157.  
  158.  
  159.  
  160.                                   REFERENCES
  161.  
  162.         Cornfield, J., and J.W. Tukey (1956).  Average values of mean
  163.            squares  in  factorials.   The  Annals   of   Mathematical
  164.            Statistics,27,907-949.
  165.  
  166.  
  167.  
  168.  
  169.