home *** CD-ROM | disk | FTP | other *** search
/ RBBS in a Box Volume 1 #3.1 / RBBSIABOX31.cdr / swal / statpac.doc < prev    next >
Encoding:
Text File  |  1990-09-29  |  48.1 KB  |  1,160 lines

  1.                  UNITED STATES DEPARTMENT OF THE INTERIOR
  2.  
  3.                             GEOLOGICAL SURVEY
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.       Brief descriptions of STATPAC and related statistical programs
  12.  
  13.                       for the IBM Personal Computer
  14.  
  15.  
  16.                                     by
  17.  
  18.  
  19.                           U.S. Geological Survey
  20.  
  21.  
  22.                         Last update August 5, 1984
  23.  
  24.  
  25.  
  26.                            Open-File Report 84-522
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.                                 DISCLAIMER
  35.  
  36.  
  37. Although program tests have been made, no guarantee (expressed or implied)
  38. is made by the authors regarding program correctness, accuracy, or proper
  39. execution on all computer systems.
  40.  
  41.  
  42.  
  43.  
  44. -------------
  45. Any use of trade names in this report is for descriptive purposes only and
  46. does not imply endorsement by the U.S. Geological Survey.  This report is
  47. preliminary and has not been reviewed for conformity with the U.S. Geological
  48. Survey editorial standards.
  49.  
  50.  
  51.  
  52.  
  53.  
  54.                                  Contents
  55.  
  56.                           ____________________
  57.  
  58.                                                                  Page
  59.  
  60. Introduction -------------------------------------------------     4
  61. General remarks on the STATPAC system ------------------------     5
  62. STATPAC data files -------------------------------------------     7
  63. Classification of programs -----------------------------------     8
  64. Programs -----------------------------------------------------     9
  65.      ADCOLS --------------------------------------------------     9
  66.      ADROWS --------------------------------------------------     9
  67.      ANOV-1& -------------------------------------------------     9
  68.      ANOV-1.BAT ----------------------------------------------     9
  69.      ANOV-2 --------------------------------------------------     9
  70.      BASTAT --------------------------------------------------     9
  71.      CARFIL --------------------------------------------------     9
  72.      CHARSORT ------------------------------------------------    10
  73.      CHR2STP -------------------------------------------------    10
  74.      CMN2STP -------------------------------------------------    10
  75.      COOR ----------------------------------------------------    10
  76.      CURVES --------------------------------------------------    10
  77.      DLCOLS --------------------------------------------------    10
  78.      DLROWS --------------------------------------------------    10
  79.      DUPFINDR ------------------------------------------------    10
  80.      EQBFIT -------------------------------------------------     11
  81.      EQFILE --------------------------------------------------    11
  82.      EQMODE --------------------------------------------------    11
  83.      EQSPIN --------------------------------------------------    11
  84.      EQTEST ---------------------------------------------------   12
  85.      FINDRG ---------------------------------------------------   12
  86.      FILFIL ---------------------------------------------------   12
  87.      FILONE ---------------------------------------------------   12
  88.      FILTER ---------------------------------------------------   12
  89.      FIXIT ----------------------------------------------------   12
  90.      FVDGRM$ --------------------------------------------------   12
  91.      GSCUTM ---------------------------------------------------   12
  92.      GXFIXX ---------------------------------------------------   13
  93.      JKGTLS ---------------------------------------------------   13
  94.      JKPTLS ---------------------------------------------------   13
  95.      MAP---$ --------------------------------------------------   13
  96.      MAPPLT ---------------------------------------------------   13
  97.      MATRIX ---------------------------------------------------   13
  98.      NEWIDS ---------------------------------------------------   13
  99.      NEWLOC ---------------------------------------------------   13
  100.      NORCHI ---------------------------------------------------   13
  101.      NORMST ---------------------------------------------------   14
  102.      PACR2STP -------------------------------------------------   14
  103.      PARCOR ---------------------------------------------------   14
  104.      PERMUTER -------------------------------------------------   14
  105.  
  106.      PRINTT ---------------------------------------------------   14
  107.      POLYGRET -------------------------------------------------   14
  108.      RANDOM$ --------------------------------------------------   15
  109.      REGRESS&.FOR ---------------------------------------------   15
  110.      REPLAC----------------------------------------------------   15
  111.      ROWIDRET--------------------------------------------------   15
  112.      RRMODE----------------------------------------------------   15
  113.      SORTT-----------------------------------------------------   16
  114.      SS2DBLOK--------------------------------------------------   16
  115.      SS2DDRES--------------------------------------------------   17
  116.      SS2DGAMH--------------------------------------------------   17
  117.      SS2DGRID--------------------------------------------------   17
  118.      SS2DMEN&.FOR ---------------------------------------------   17
  119.      SS2DMENU.BAT ---------------------------------------------   18
  120.      SS2DPREP--------------------------------------------------   18
  121.      SS2DVCTL--------------------------------------------------   18
  122.      SSS2DXVAL-------------------------------------------------   18
  123.      STATCOR---------------------------------------------------   18
  124.      STDGRM$---------------------------------------------------   19
  125.      STP2CHR---------------------------------------------------   19
  126.      STP2CMN---------------------------------------------------   19
  127.      STPMEN&.FOR-----------------------------------------------   19
  128.      STPMENU.BAT-----------------------------------------------   19
  129.      STPSORT---------------------------------------------------   19
  130.      TABFIL----------------------------------------------------   19
  131.      TABRAN----------------------------------------------------   19
  132.      TABQ------------------------------------------------------   20
  133.      TERFIL----------------------------------------------------   20
  134.      TERFIL$---------------------------------------------------   20
  135.      TERPLT----------------------------------------------------   20
  136.      UCODERET--------------------------------------------------   20
  137.      WHATQ-----------------------------------------------------   20
  138.      XYDGRM$---------------------------------------------------   20
  139.      XYPLOT----------------------------------------------------   20
  140. References Cited-----------------------------------------------   21
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.       Brief descriptions of STATPAC and related statistical programs
  163.  
  164.                       for the IBM Personal Computer
  165.  
  166.  
  167.                Programs written for or modified for the PC
  168.  
  169.                       by the U.S. Geological Survey
  170.  
  171.                         Last update August 5, 1984
  172.  
  173.  
  174.                                Introduction
  175.  
  176.  
  177.      Computer programs described in this report have been developed to be
  178. run on the IBM personal computer (PC), a desk-top microcomputer that is
  179. based on the 16-bit, 8088 microprocessor by Intel.  The programs take
  180. advantage of the 8087 numeric co-processor, which greatly accelerates
  181. floating-point arithmetic operations.  This co-processor is not mandatory,
  182. but some programs which perform a large number of floating-point operations
  183. will require much longer run times without it.  This co-processor is not
  184. ordinarily included with the PC as originally purchased, but is a highly
  185. desirable upgrade if maximum utility of these programs is to be realized.
  186.  
  187.      In addition, a FORTRAN 77 (by Microsoft, version 3.20 or later)
  188. compiler is required, as only FORTRAN source code for the programs is
  189. supplied on the release diskettes which are available in U.S. Geological
  190. Survey Public Information 0ffices.  BASIC programs are written in IBM
  191. BASIC, which is a modification of BASIC by Microsoft.  Interpreted BASIC
  192. tends to run slowly, but compiled BASIC programs (run modules created by
  193. IBM's BASIC compiler) run at much faster speeds.  A BASIC compiler is a
  194. highly desirable software addition.
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.                      General remarks on the STATPAC system
  221.  
  222.  
  223.      The USGS STATPAC system of mathematical and statistical programs
  224. was developed over more than 20 years by a number of mathematicians
  225. and programers.  The system was originally written in ALGOL for the
  226. Burroughs 220 and 5000 systems, and later translated into FORTRAN for
  227. the IBM 360/370, DEC10, and Honeywell Multics systems.  The programs are
  228. used chiefly in the fields of applied geochemistry and petrology, but
  229. may be used with any data that can be logically arranged into a matrix
  230. wherein the rows represent samples, or observations, and the columns
  231. represent variables, or measurements.  Each data value can be qualified
  232. by any one of six different single-character codes which are used, in
  233. the field of applied geochemistry, to have the following meanings:
  234.  
  235.             N   Constituent not detected
  236.  
  237.             L   Less than the associated value.
  238.                   Constituent present but concentration
  239.                   is too low to be measured by the
  240.                   analytical method being used
  241.  
  242.             T   Trace of constituent is present
  243.  
  244.             G   Greater than the associated value.
  245.                   Concentration is too large to be
  246.                   measured by the analytical
  247.                   method being used
  248.  
  249.             H   Concentration not measured because of
  250.                   analytical interference
  251.  
  252.             B   Blank.  No value reported
  253.  
  254.      Some of the STATPAC programs ignore the qualifying codes, some
  255. (such as those for multivariate analysis) reject the data set if the
  256. codes are present, and others use the codes as appropriate for the
  257. computation being performed.  The qualifying codes can be eliminated
  258. from the data set if desired (see program REPLAC), but all aspects of
  259. treatment of the qualified data are the responsibility of the program
  260. user.
  261.  
  262.      All programs are in FORTRAN 77 except where noted in the program
  263. descriptions.  Programs with names ending in the character "$" are in
  264. IBM BASIC and either accept or write out standard .CHR files (see below).
  265. Two subroutines (clears and tickers) are written in 8086 assembly language.
  266. They are present on the release disks as assembly language source code and as
  267. ready-to-link object modules.  A user desiring to modify these routines must
  268. have access to a small assembler or a macroassembler.
  269.  
  270.      Data are generally entered into unformatted STATPAC files from
  271. card-image files using the programs TABFIL or CARFIL (cards to STATPAC
  272. file), or small data sets can be entered into a STATPAC file with program
  273. TERFIL (terminal to STATPAC file).   All STATPAC files are written with
  274. the subroutine JKPTLS (in IOS.FOR) and read with subroutine JKGTLS (also
  275.  
  276.  
  277.  
  278. in IOS.FOR).  An output file from any STATPAC FORTRAN program can be
  279. used as input to any other STATPAC FORTRAN program.  Once the data set
  280. has been entered on a STATPAC file, it can be transformed and modified
  281. in any manner with program FILFIL (STATPAC file to STATPAC file).  Both
  282. programs CARFIL and FILFIL must be modified, re-compiled, and re-linked
  283. for each new application.
  284.  
  285.      The program naming convention used here commonly includes 3-character
  286. identifiers with the following meanings:
  287.  
  288.               CAR  a card-image or ASCII file
  289.  
  290.               FIL
  291.               or
  292.               STP  a binary STATPAC file
  293.  
  294.               TER  the terminal or keyboard
  295.  
  296.               CHR  a standardized ASCII file used for input
  297.                      to certain BASIC-language programs
  298.                      (i.e.  those with a "$" at the end
  299.                      of their names).
  300.  
  301.               CMN  an ASCII file used for data communications
  302.                      (i.e., uploading or downloading).
  303.  
  304.               TAB  an ASCII data file that contains two rows
  305.                      for each observation.  See program
  306.                      TABFIL.
  307.  
  308.      Some of the FORTRAN programs and subroutines use the metacommand
  309.     NCLUDE:  xxxxx.INC.  The file xxxxx.INC must be present when the program
  310. is compiled.
  311.  
  312.      Programs that contain more than a few subroutine segments can be
  313. linked by typing LINK @xxxxx.LNK, where xxxxx is the program name.
  314. See for example program RRMODE and RRMODE.LNK or MATRIX and MATRIX.LNK.
  315.  
  316.      The source codes for the programs are contained on 5-1/4 inch double-
  317. sided floppy diskettes maintained on file in U.S. Geological Survey
  318. Public Information 0ffices.  Users supplying their own diskettes are
  319. invited to use the micro-computer facilities available in these offices
  320. to make duplicates.  Comments or questions concerning program content should
  321. be directed to the U.S. Geological Survey's Branch of Resource Analysis in
  322. Denver, Colorado.
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.                             STATPAC data files
  333.  
  334.      STATPAC data files on the Denver Multics system can be converted to
  335. ASCII character files with Multics STATPAC program STP2CMN, then downloaded
  336. to the PC via telephone lines and converted back to binary STATPAC files
  337. with PC program CMN2STP.
  338.  
  339.      The standard ASCII files needed for input to the BASIC programs can
  340. be created with program STP2CHR (and converted back with CHR2STP) or can
  341. be produced with program TERFIL$ by typing data in at the keyboard.
  342.  
  343.      STATPAC programs in FORTRAN generally include declarator statements
  344. similar to:
  345.  
  346.   CHARACTER*4 ID(2),IVID(m,2),NAME(4)
  347.  
  348.   CHARACTER*1 IA(m)
  349.  
  350.   INTEGER*4 LOC(2)
  351.  
  352.   DIMENSION X(m)
  353.  
  354. where "m" is the maximum number of variables (columns) allowed in the
  355. input data file.  Binary STATPAC data files contain a "header" record
  356. followed by N data records.  The header record is written by the
  357. FORTRAN statement:
  358.  
  359.   WRITE(KI) ID,N,M,(IVID(I,1),IVID(I,2),I=1,M)
  360.  
  361. and read by:
  362.  
  363.   READ(KI) ID,N,M,(IVID(I,1),IVID(I,2),I=1,M)
  364.  
  365. where KI is the device number, ID is an 8-character data set identifier,
  366. N is the number of rows in the data matrix and M is the number of columns.
  367. IVID is an 8-character identifier for each variable (column).  Data
  368. records are written to and read from STATPAC files with the following
  369. FORTRAN statements, respectively:
  370.  
  371.   CALL JKPTLS(KI,I,NAME,LOC,X,IA,M)
  372.  
  373.   CALL JKGTLS(KI,J,NAME,LOC,X,IA,M,IERR)
  374.  
  375. where I is a sequential row-number (generally the index for a DO loop),
  376. J is the row-number from the data file, NAME is a 16-character name for
  377. an observation (sample identifier), LOC contains two integers (generally
  378. latitude and longitude of the sampling site), X contains the numeric
  379. data values, and IA contains the qualifying codes.  The first 8 characters
  380. of NAME are referred to as the primary row ID and the second 8 characters
  381. form the secondary row ID.  IERR is an "unexpected end-of-file" error
  382. flag from subroutine JKGTLS and should be zero.
  383.  
  384.      By convention, all binary STATPAC data file names end with the
  385. extension .STP and all ACSII character data files with standardized
  386.  
  387.  
  388. format for the BASIC programs have extensions of .CHR.  Files created
  389. for transfer of data via phone lines have the extension .CMN.  (See
  390. programs STP2CHR, CHR2STP, STP2CMN and CMN2STP for creating one type
  391. of data file from another.)
  392.  
  393.      Batch files (with extension .BAT) are used to invoke programs
  394. that require printer formats with more than 80 characters per line
  395. (see, for example, programs ANOV-1 and REGRESS).  The batch routine,
  396. started by simply typing the program name, xxxxx, sets the IBM or
  397. EPSON printer to 132 characters per line, calls the program with name
  398. xxxxx&, and then resets the printer to 80 characters per line after
  399. execution.
  400.  
  401.                   Classification of programs
  402.  
  403.    Data Entry             Sorting                 Utility
  404.  
  405.    CARFIL                 CHARSORT                ADCOLS
  406.    TABFIL                 SORTT                   ADROWS
  407.    TERFIL                 STPSORT                 COOR
  408.    TERFIL$                                        DLCOLS
  409.                                                   DLROWS
  410.                           Retrieval               DUPFINDR
  411.    File                                           FINDRG
  412.    Conversion             POLYGRET                FILFIL
  413.                           ROWIDRET                FILONE
  414.    CHR2STP                UCODERET                FILTER
  415.    CMN2STP                                        FIXIT
  416.    PACR2STP                                       GSCUTM
  417.    STP2CHR                Mathematics &           GXFIXX
  418.    STP2CMN                Statistics              NEWIDS
  419.                                                   NEWLOC
  420.    Graphics               ANOV-1                  PERMUTER
  421.                           ANOV-2                  PRINTT
  422.    FVDGRM$                BASTAT                  REPLAC
  423.    MAP---$                CURVES                  TABQ
  424.    MAPPLT                 MATRIX                  WHATQ
  425.    STDGRM$                NORCHI
  426.    TERPLT                 NORMST                  Factor
  427.    XYDGRM$                PARCOR                  Analysis
  428.    XYPLOT                 RANDOM$
  429.                           REGRESS                 EQBFIT
  430.    Spatial Statistics     STATCOR                 EQFILE
  431.    (Kriging)              TABRAN                  EQMODE
  432.                                                   EQSPIN
  433.    STPMENU                                        EQTEST
  434.    SS2DMENU                                       RRMODE
  435.    SS2DPREP
  436.    SS2DVCTL
  437.    SS2DGAMH
  438.    SS2DXVAL
  439.    SS2DBLOK
  440.    SS2DGRID
  441.    SS2DDRES
  442.  
  443.                                Programs
  444.  
  445.   ADCOLS
  446.    Merges two STATPAC data matrices columnwise. The two matrices
  447.    must have the same number of rows.
  448.    Link with:  IOS
  449.  
  450.   ADROWS
  451.    Merges two STATPAC data matrices rowwise.  The two matrices must
  452.    have the same number of columns.
  453.    Link with:  IOS
  454.  
  455.   ANOV-1& (formerly program D0038)
  456.    0ne-way nested (hierarchical) analysis of variance.  Up to 10
  457.    levels may be nested and the design may be unbalanced.  Variance
  458.    component estimates may be written on a STATPAC output file.
  459.    Non-significant mean-square estimates are pooled for revised
  460.    significance tests.  Output is directed to the printer which must
  461.    provide 132 characters per line.  The first NL variables in the
  462.    STATPAC data file, where NL is the number of nested levels, must
  463.    be indices that specify the position of the observation in the
  464.    ANOV design.  See ANOV-1.BAT.
  465.    Link with:  IOS
  466.  
  467.   ANOV-1.BAT
  468.    Batch routine to set the IBM or EPSON printer to 132 characters
  469.    per line.  Program ANOV-1& is then executed automatically, and
  470.    the printer setting is then returned to 80 characters per line.
  471.    To execute, type "ANOV-1".
  472.  
  473.   ANOV-2
  474.    Two-way analysis of variance with or without within-cell replica-
  475.    tions.  Data on the STATPAC file must be ordered replications-
  476.    columns-rows.  That is, all replications for col.1,row1  -then
  477.    all  replications  for  col.1,row2  -then col.1,row3,  etc. until
  478.    col.1,row"n".  The data for col.2,row1 then  follow.  There may
  479.    be up to 35 variables on the STATPAC input file with up to 100
  480.    columns and 12 rows in the ANOV design.  F-ratios are computed
  481.    using the error term in the denominator and again using the pooled
  482.    error and interaction terms.  The latter F-ratio is to be used
  483.    only where the interaction variance is not significant.
  484.    Link with:  IOS
  485.  
  486.   BASTAT
  487.    Computes basic statistics on a STATPAC data set and constructs
  488.    horizontal bar-type histograms.
  489.    Link with:  GRAPH, PRCEN, BDSTA, and IOS.
  490.  
  491.   CARFIL
  492.    Produces a binary STATPAC file from a card-image file.  CARFIL
  493.    must be modified and recompiled for each new card-image format.
  494.    Link with:  IOS
  495.  
  496.  
  497.  
  498.   CHARSORT
  499.    This program sorts a character file of 3000 records or less in
  500.    either ascending or descending order.  No record can exceed a
  501.    length of 127 characters.  Record lengths need not be uniform.
  502.    The user can select from one to ten sort fields of varying widths
  503.    in any desired sequence.  The sum of the widths of the selected
  504.    sort fields cannot exceed 48 characters.  The sorted records are
  505.    written on a character output file.  Trailing blanks are stripped
  506.    off each record.  If IOS.0BJ is present, after compilation the
  507.    program can be linked by typing "LINK @CHARSORT.LNK".
  508.    Link with:  BEEP, C2SORT, CKSAFE, ROSORT, TICKERS
  509.  
  510.   CHR2STP
  511.    To produce a binary STATPAC file from a standard-formatted ASCII
  512.    file.  See program STP2CHR for standard format.
  513.    Link with:  IOS
  514.  
  515.   CMN2STP To produce a binary STATPAC file from a .CMN (communications)
  516.    file.  See program STP2CMN.
  517.    Link with:  IOS
  518.  
  519.   COOR
  520.    Transfers the values of latitude and longitude stored as integer
  521.    values in the 'LOC' array of a STATPAC row into corresponding
  522.    STATPAC variables which are expressed in decimal degrees.  The
  523.    STATPAC rows containing the additional columns are written on a
  524.    STATPAC output file.
  525.    Link with:  IOS
  526.  
  527.   CURVES
  528.    To fit any of seven different functions to two variables by least
  529.    squares.  Observed, computed, and residual values may be printed,
  530.    along with the 95% confidence intervals.
  531.    Link with:  IOS, MATKLO
  532.  
  533.   DLCOLS
  534.    To create a new STATPAC data file with specified columns (variables)
  535.    deleted.
  536.    Link with:  IOS
  537.  
  538.   DLROWS
  539.    To create a new STATPAC data file with specified rows (observations,
  540.    samples) deleted.
  541.    Link with:  IOS
  542.  
  543.   DUPFINDR
  544.    Writes to a character output file the row number and primary ID
  545.    of all sets of data points which are within a user-specified
  546.    distance of one another.  This specified distance and the variable
  547.    numbers of the XY coordinates are requested at run time.
  548.    Link with:  IOS, BEEP, FSORT, and TICKERS
  549.  
  550.          ***********************************************************
  551.  
  552.  
  553.        Programs in the "EQ" series are for "extended Q-mode factor
  554.   analysis of compositional data" (see Miesch, 1976a, 1981).  They
  555.   are used principally for the development of petrologic mixing/unmixing
  556.   (differentiation) models.  It is required that the variables for
  557.   each observation (row) in the STATPAC data matrix sum precisely to
  558.   some constant, generally 100 percent.  The principal advantages of
  559.   "extended Q-mode factor analysis over conventional methods of
  560.   factor analysis are that 1) the factor axes, rather than being
  561.   determined solely by mathematics, can be selected to represent
  562.   real or hypothetical geologic materials, 2) the factor scores,
  563.   rather than being in units of transformed and normalized data, are
  564.   in the same units as the compositional data, and 3) the factor
  565.   loadings sum to unity for each sample and can be interpreted
  566.   directly as mixing/unmixing proportions.
  567.  
  568.         Program EQMODE is always run first.  This program creates a
  569.    binary MASTER or E97 file that can be inspected with program
  570.    EQFILE.  All of the other programs in the "EQ" series read this
  571.    MASTER(E97) file.  Seven of the "EQ" series program are described
  572.    in Miesch (1976b).
  573.  
  574.   EQBFIT
  575.    Used to derive "badness-of-fit" measures of samples to a factor
  576.    model as represented in a MASTER(E97) file.  Badness-of-fit, like
  577.    the communality, depends only on the number of factors, and is
  578.    computed as the residual/original value.  The overall badness-of-fit
  579.    measure for each sample is the quadratic mean of the measures for
  580.    each variable.
  581.  
  582.   EQFILE
  583.    Used to read a MASTER(E97) file created with program EQMODE and
  584.    to compute varimax loadings and scores.  Output may be directed
  585.    to the screen or to a character output file.  Output data may
  586.    include any of the following:  raw data, maximum and minimum
  587.    values for each variable, principal component loadings, varimax
  588.    loadings, communalities, principal component scores, varimax
  589.    scores, or varimax transformation matrices.
  590.  
  591.   EQMODE
  592.    All of the programs in the "EQ" series are for extended Q-mode
  593.    factor analysis of compositional data that sum to a constant
  594.    (generally 100%) for each observation (sample).  Program EQMODE
  595.    creates a file (named "E97") that contains all the basic information
  596.    needed as input by the other programs in the series.
  597.    Link with:  TRANS, EIGEN, VARMAX2, IOS
  598.  
  599.   EQSPIN
  600.    Used to rotate a 3-dimensional vector system for display on a
  601.    stereographic-type diagram.  System may be rotated in a specified
  602.    direction or so that the 1st principal component axis is vertical.
  603.    May also be used to plot miscellaneous samples on the stereogram
  604.    and to outline the area within the stereogram wherein all plotted
  605.    and hypothetical vectors represent non-negative compositions.
  606.    Compositions represented by 37 points along this boundary are
  607.  
  608.    written out on a character file named "COMP.LST".  The 2nd and 3rd
  609.    loadings for the rotated sample vectors and the 37 boundary points
  610.    can be written on a STATPAC file.  This may be converted to a .CHR
  611.    file for screen display of the stereogram with program STDGRM$.
  612.    Link with:  MATKLO, EXPAND, IOS
  613.  
  614.   EQTEST
  615.    Used to test samples represented in a STATPAC data file for fit
  616.    to a factor model represented in an existing MASTER(E97) file.
  617.    The samples may or may not be those used to develop the model.
  618.    Also derives coordinates of samples for plotting on a stereogram
  619.    if a 3-factor model is being used.  STATPAC output file contains
  620.    the sample communalities and initial varimax loadings.
  621.    Link with:  IOS
  622.  
  623.    ************************************************************
  624.  
  625.  
  626.   FINDRG
  627.    Used to browse through a STATPAC data file looking for samples
  628.    that contain values for selected variables within specified ranges.
  629.    Link with:  IOS
  630.  
  631.   FILFIL
  632.    To read a STATPAC file, make data transformations, and write out
  633.    a new STATPAC file.  FILFIL must be modified and recompiled for
  634.    each new application.
  635.    Link with:  IOS
  636.  
  637.   FILONE
  638.    To read the header information (N, M, Data set ID, variable ID's)
  639.    and the first observation in a STATPAC data set.
  640.    Link with:  IOS
  641.  
  642.   FILTER
  643.    To read the header information (N, M, Data set ID, variable ID's)
  644.    and selected observations in a STATPAC data set.
  645.    Link with:  IOS
  646.  
  647.   FIXIT
  648.    Changes selected values and/or qualifying codes in a STATPAC data
  649.    set.
  650.    Link with:  IOS
  651.  
  652.   FVDGRM$
  653.    A BASIC program for screen display of factor-variance diagrams
  654.    from a .CHR file.  The .CHR files are created with program STP2CHR
  655.    using output files from programs RRMODE or EQMODE.
  656.  
  657.   GSCUTM
  658.    Computes UTM north and east coordinates (expressed as kilometers
  659.    rather than meters) using the STATPAC decimal degrees latitude and
  660.    longitude variables.  The UTM coordinates are written on a STATPAC
  661.    output file along with the previously existing variables.
  662.    Link with:  IOS
  663.  
  664.   GXFIXX
  665.    To adjust each of the variables in a STATPAC data set to a common
  666.    lower and/or upper cut-off value (i.e., lower and/or upper limits).
  667.    This is to avoid the problem of having values of, say, <10 and <20
  668.    (or >100 and >200) for the same variable.  GXFIXX selects the lower
  669.    and/or upper limits that will require the fewest changes in order
  670.    to make the adjustments.  Writes a STATPAC output file containing
  671.    the adjusted data.
  672.    Link with:  IOS
  673.  
  674.   JKGTLS
  675.    Subroutine to read data records from a binary STATPAC data file.
  676.    Contained in file IOS.FOR
  677.  
  678.   JKPTLS
  679.    Subroutine to write data records to a binary STATPAC data file.
  680.    Contained in file IOS.FOR
  681.  
  682.   MAP---$
  683.    Plots a "symbol" map on the IBM or EPSON printer.  As many as seven
  684.    symbols may be used for each map.  User specifies the boundaries
  685.    of the map so that the map may represent the entire area covered
  686.    by the data set or only a portion of the area.  The symbols may
  687.    be defined by the user or left to the program.
  688.    Link with:  IOS
  689.  
  690.   MAPPLT
  691.    Reads in a STATPAC file and produces a file for printer plotting
  692.    of a map of any selected variable.  The x-y coordinates may have
  693.    any origin.  The map shows numbers ranging  from 0-9 that specify
  694.    the decile of the total range in which the mapped value occurs at
  695.    each x-y point on the map.  If more than one observation occurs
  696.    at any x-y location, the decile indicates their arithmetic average.
  697.    On option, another map may be printed which shows the numbers of
  698.    values averaged at each location.
  699.    Link with:  IOS
  700.  
  701.   MATRIX
  702.    Used to perform matrix computations on small matrices (up to 10x10).
  703.    MATRIX is generally used for experimental work in matrix manipulations.
  704.    Link with:  MATRIX1, EIGEN, MATKLO, IOS
  705.  
  706.   NEWIDS
  707.    Writes a revised STATPAC file with modified data set ID, variable
  708.    IDs, and/or sample IDs.
  709.    Link with:  IOS
  710.  
  711.   NEWLOC
  712.    Writes a revised STATPAC data file with new values for the 'LOC'
  713.    array which are entered at the terminal.
  714.    Link with:  IOS
  715.  
  716.   NORCHI
  717.    Performs chi-square test for normality of a selected STATPAC
  718.    variable.  Program computes mean, variance, skewness, and kurtosis
  719.  
  720.    of the selected variable, a table of actual number of observations
  721.    versus theoretical number of observations by class interval, the
  722.    total chi-square value, the degrees of freedom (number of classes
  723.    used minus three), and the probability of exceeding the computed
  724.    value of chi-square.  Program prints out to the PC's screen.  As
  725.    an option, the test can be performed on the distribution of natural
  726.    logarithms of the STATPAC variable, provided it has no zero or
  727.    negative values.
  728.    Link with:  IOS
  729.  
  730.   NORMST
  731.    Reads a STATPAC file of petrochemical data and creates a new
  732.    STATPAC file of CIPW norms.
  733.    Link with:  CIPW, IOS.
  734.  
  735.   PACR2STP
  736.    Converts a specially formatted character file retrieved from a
  737.    multics PACER file into a STATPAC output file.  Comments in the
  738.    source code give instructions for its use.
  739.    Link with:  IOS
  740.  
  741.   PARCOR
  742.    Used to derive partial correlation coefficients.  User supplies
  743.    R12, R13, and R23.  Program displays R12.3 (the correlation
  744.    between variables 1 and 2 with variable 3 held constant.
  745.  
  746.   PERMUTER
  747.    Rearranges (permutes) rows of a STATPAC input file in a random
  748.    order.  The random order will differ each time the program is
  749.    run because the random number generator is initially seeded by
  750.    the PC's system clock.  The permuted rows are written on a STATPAC
  751.    output file.
  752.    Link with:  IOS, BEEP, CKSAFE, FSORT, RAND, and TICKERS
  753.  
  754.   PRINTT
  755.    Prints the entire STATPAC file.
  756.    Link with:  IOS
  757.  
  758.   POLYGRET
  759.    Retrieves from a STATPAC input file those samples whose coordinate
  760.    values lie within a polygonal boundary.  The user can select 1)
  761.    only those samples which lie within or on the boundary, or 2)
  762.    only those samples which lie outside the boundary.  The retrieved
  763.    sample-rows are written on a STATPAC output file.  Nodes of the
  764.    boundary are stored on a previously created character disk file
  765.    which can be written by the EDLIN editor.  Each node of the boundary
  766.    is typed on a single line with the north coordinate (decimal degrees
  767.    latitude or other vertical coordinate) typed first and the east
  768.    coordinate typed second.  The north and east coordinates must be
  769.    separated by at least one blank space or by a comma.  Embedded
  770.    blanks in the north or east coordinates are not permitted.  The
  771.    boundary nodes must be entered in a clockwise direction.
  772.    Link with:  IOS, AREA, CKSAFE, AND PTLOC
  773.  
  774.  
  775.   RANDOM$
  776.    A BASIC program for writing a character (.CHR) file of uncorrelated
  777.    normal deviates.  The file may contain up to 99 columns simulating
  778.    uncorrelated variables and any number of rows.
  779.  
  780.   REGRESS&.FOR (formerly program D0094)
  781.    Step-forward regression program based on method of Efroymson
  782.    (1960) which uses partial correlations to add variables to and
  783.    delete from the regression equation.  User supplies significance
  784.    level to be used as criterion for addition and deletion.  Observed,
  785.    computed, and residual values may be written on a STATPAC output
  786.    file.  See REGRESS.BAT
  787.    Link with:  IOS
  788.  
  789.   REGRESS.BAT
  790.    Batch routine for setting the IBM or EPSON printer to 132 characters
  791.    per line.  Program REGRESS& is then executed automatically, and
  792.    the printer setting is returned to 80 characters per line.  To
  793.    execute, type "REGRESS".
  794.  
  795.   REPLAC
  796.    Used to replace (remove) qualifying codes in a STATPAC data file.
  797.    Values of zero coded by N, L, or T are replaced by values supplied
  798.    by the user.  Then all values coded by N, L, or T are multiplied
  799.    by 0.7 and the codes are removed.  Values of zero coded by G are
  800.    replaced by values supplied by the user.  Then all values coded by
  801.    G are divided by 0.7 and the G is removed.  Values coded by H or
  802.    B are replaced with the average uncoded value for the variable,
  803.    and the codes are removed.  It is recommended that the data be
  804.    processed through program GXFIXX before REPLAC is used.
  805.    Link with:  IOS
  806.  
  807.   ROWIDRET
  808.    Retrieves  from a STATPAC input file those rows whose primary or
  809.    secondary IDs (either but not both) are stored on a character
  810.    file which was previously created by the user.  The user is given
  811.    the option of retrieving 1) only those rows which are on this
  812.    file, or 2) only those rows which are not.  The retrieved rows
  813.    are written on a STATPAC output file.  The disk file containing
  814.    the primary or secondary row IDs can be created by the EDLIN
  815.    editor.  The individual row IDs (either primary or secondary) are
  816.    entered in FORTRAN format(a8) in columns 1-8, with only one row
  817.    ID per line.  Spelling of the row IDs must agree exactly with
  818.    their spelling on the STATPAC input file.  Leading and embedded
  819.    blanks in the row IDs must be typed in exactly the same position
  820.    as on the STATPAC file.  Trailing blanks, however, need not be
  821.    typed.  A retrieval based on both the primary and secondary row
  822.    IDs will require two runs of the program with separate disk files
  823.    of the respective row IDs.
  824.    Link with:  IOS, BEEP, CKSAFE
  825.  
  826.   RRMODE
  827.    For R-mode factor analysis.  Writes STATPAC output files of factor
  828.    loadings and scores for four kinds of factor models (Principal
  829.  
  830.    Components, Varimax, Oblique model based on the extreme samples,
  831.    and Oblique model based on the extreme variables).  Output files
  832.    of the recomputed data, the residuals, and/or badness-of-fit
  833.    measures for the samples.  Another output file contains the variable
  834.    communalities.  Coefficients used for computing the scores are
  835.    also printed.  RRMODE and nine of its subroutines may be compiled
  836.    with batch file RRCOMP, by typing "RRCOMP".  The file "RRMODE.INC"
  837.    must be present when compiling in order to satisfy the     NCLUDE:
  838.    RRMODE.INC metacommand which is present in all ten RRxxxx files.
  839.    If IOS.OBJ is present, RRMODE can be linked after compilation by
  840.    typing "LINK @RRMODE.LNK".
  841.    Link with:  RRPCOM, RREIGN, RRFILE, RRVRMX, RRVROT, RROBLS,
  842.    RROBLV, RRMATK, RRCOEF, and IOS
  843.  
  844.   SORTT
  845.    A BASIC program to sort a character file on selected columns.
  846.    User supplies the beginning card-column number and the field
  847.    length.
  848.  
  849.  
  850.    ************************************************************
  851.  
  852.         Programs in the "SS2D" series implement the geostatistical
  853.    method of estimation of geological variables that is known as
  854.    kriging.  STATPAC input data files must have cartesian coordinates
  855.    in the x-y plane for each sample point, and no two sample points
  856.    can have identical x-y coordinates.  The variable to be estimated
  857.    must have certain geological and statistical properties (Journel
  858.    and Huijbregts, 1978, pp 196-207).  The variable may have some
  859.    qualified values, but qualified values will be bypassed and not
  860.    included in the computations.  Programs SS2DXVAL, SS2DGRID, and
  861.    SS2DBLOK have options for using either ordinary or universal krig-
  862.    ing, the spherical, linear-root-parabolic, exponential, gaussian,
  863.    and cubic semivariogram models, nested semivariograms, and geometric
  864.    and zonal anisotropy.  The error variance of the observed value
  865.    of the geological variable at each sample point, if known, can be
  866.    included in the kriging.  Kriging is done by the moving neighborhood
  867.    technique, and the user specifies the search radius which defines
  868.    the neighborhood size.  Two include files, "PTKRIG.INC" and
  869.    "BKKRIG.INC", must be present on disk when these programs and
  870.    their subroutines are compiled.
  871.  
  872.   SS2DBLOK
  873.    Program computes the mean value and kriging variance of a geologic
  874.    variable within a block of ground of any specified shape.  Program
  875.    produces a character output file containing the computed area of
  876.    the block, the block variance, the kriged mean of the geologic
  877.    variable, and the kriging variance of that variable, and optionally,
  878.    a list of the sample values used in the estimation together with
  879.    their kriging weights.  Coordinates of the nodes defining the
  880.    block can be entered from the terminal at run time, or can be
  881.    stored on a character input file created by, say, the EDLIN editor.
  882.    The north- and east-coordinates for each node are entered on a
  883.    single line, and are separated by a space or comma.  They must
  884.  
  885.    be entered in a clockwise direction.  If IOS.OBJ is present,
  886.    after compilation the program can be linked by typing
  887.    "LINK @SS2DBLOK.LNK".  Link with:  AREA, BEEP, CBAR4, CKSAFE,
  888.    COVAR4, CTROID, DOLITL, DRFTRM, DSORT, GETFLE, GRDPTS, GRIDER,
  889.    HLSRCH, IOS, IRREG, KRGOT4, KRIG4B, MAXCOR, MNVAR, NAMFIL, NEIGH,
  890.    PSET4, PTLOC, RAND, TERM, TICKERS, VARIN4, VRBLK4
  891.  
  892.   SS2DDRES
  893.    Program computes drift residuals using method of generalized
  894.    least squares.  The user must enter the parameters of an assumed
  895.    variogram and the exponents of the terms of an assumed form of
  896.    drift.  This program offers a method of developing a suitable
  897.    variogram/drift model for non-stationary geological variables
  898.    by trial-and-error iterations.  Program produces a STATPAC output
  899.    file of the computed drift residuals of the data points and
  900.    their coordinates.  This data file can be processed by program
  901.    SS2DGAMH.  The STATPAC input file for SS2DDRES must be preprocessed
  902.    by SS2DPREP.  After compilation, if IOS.OBJ is present, SS2DDRES
  903.    can be linked by typing "LINK @SS2DDRES.LNK".
  904.    Link  with:  BEEP, CKSAFE, COVAR4, DOLITL, DRFTRM, DSORT, GETFLE,
  905.    HEADER, INGRD, IOS, KRIG4C, MAXCOR, MNVAR, NEIGH, OUTGEO, PRECHK,
  906.    PSET4, SRCHPB, TERM, TICKERS, VALDOP, VARIN4
  907.  
  908.   SS2DGAMH
  909.    Computes semivariograms (gamma(h)) in one to five directions and
  910.    produces a character file for printer plotting of the graphs.
  911.    Program allows up to twenty distance class intervals, optional
  912.    logarithmic transformations of the geologic variable, and optionally
  913.    creates a "punchout" character file for use by high-resolution
  914.    screen plotting programs (such programs have not been implemented
  915.    on the IBM PC, but the punchout file can be uploaded to the multics
  916.    mainframe for producing these plots).  SS2DGAMH requires a character
  917.    control file (see SS2DVCTL below) and a preprocessed STATPAC
  918.    input file (see SS2DPREP below).  If IOS.OBJ is present, after
  919.    compilation this program can be linked by typing "LINK @SS2DGAMH.LNK".
  920.    Link with:  ATTACH, BEEP, CKSAFE, IOS, RDN, VAROUT, TICKERS
  921.  
  922.   SS2DGRID
  923.    Program estimates values of a geological variable along a grid of
  924.    points specified by the user.  Program produces a STATPAC output
  925.    file containing the north- and east-coordinates of each grid
  926.    point, the kriged value, and the kriging variance.  Program also
  927.    produces a character output file containing the same information,
  928.    but including a header displaying the user's variogram and grid
  929.    specifications.  STATPAC input file to this program must be pre-
  930.    processed by program SS2DPREP.  If IOS.OBJ is present, after
  931.    compilation,  program can be linked by typing "LINK @SS2DGRID.LNK."
  932.    Link with:  BEEP, COVAR4, CKSAFE, DOLITL, DRFTRM, DSORT, GETFLE,
  933.    HEADER, INGRD, IOS, KRIG4P, MAXCOR, MNVAR, NEIGH, OUTGEO, PRECHK,
  934.    PSET4, SRCHPB, TERM, TICKERS,VALDOP, VARIN4
  935.  
  936.   SS2DMEN&.FOR
  937.    Program prints the names of the SS2D series programs on the screen
  938.    and asks the user to enter the name of the particular program which
  939.    is to be executed.  The requested program is then run.  After normal
  940.    termination of the requested program, the list of names reappears on
  941.    the screen and the user can again name a program to be run.  Program
  942.    SS2DMEN& is invoked by SS2DMENU.BAT.  To execute the batch process,
  943.    just type the following command:  SS2DMENU
  944.    Links required:  BEEP,CLEARS
  945.  
  946.   SS2DMENU.BAT
  947.    Batch routine which invokes SS2DMEN&.  See description of SS2DMEN&.
  948.  
  949.   SS2DPREP
  950.    Preprocessing program which produces a STATPAC output file which
  951.    is used as input to programs SS2DGAMH, SS2DGRID, and SS2DDRES.
  952.    SS2DPREP sorts the rows of a STATPAC input file in ascending
  953.    order of north- and east-coordinates, checks for duplicated
  954.    data coordinate pairs, and produces the sorted STATPAC output
  955.    file if no duplicates are found.  If IOS.OBJ is present, SS2DPREP
  956.    can be linked after compilation by typing "LINK @SS2DPREP.LNK".
  957.    Link with:  BEEP, B2SORT, CKSAFE, FSORT, IOS, TICKERS
  958.  
  959.   SS2DVCTL
  960.    Program creates a character control file for use by SS2DGAMH.  The
  961.    user is prompted for the distance class intervals for the variogram
  962.    run, directions in which the variograms are to be computed, and
  963.    the allowable angular deviations about the selected directions.
  964.    The user may also select an option which will cause program SS2DGAMH
  965.    to create a variogram plotfile suitable for high resolution plotting
  966.    on the PC's screen.
  967.    Link with:  BEEP, CKSAFE
  968.  
  969.   SS2DXVAL
  970.    Program is used to cross-validate semivariogram models to determine
  971.    the suitability of the theoretical semivariogram model for use in
  972.    programs SS2DBLOK, and SS2DGRID.  Program computes kriged value
  973.    and kriging standard deviation for each data point, using neighboring
  974.    data points.  Observed kriging errors are computed and statistically
  975.    summarized.  Program produces a STATPAC output file of the results
  976.    for each data point and a character output file containing the same
  977.    information, but including also a heading record of the users specifi-
  978.    cations of parameters for the cross-validation.  After compilation,
  979.    this program can be linked by typing "LINK @SS2DXVAL.LNK".
  980.    Link  with:  BEEP, CLEARS, COVAR4, CKSAFE, DOLITL, DRFTRM, DSORT,
  981.    GETFLE, HEADER, HLSRCH, IOS, KRIG4P, MAXCOR, MNVAR, NEIGH, OUTGEO,
  982.    PSET4, TERM, TICKERS, VALDOP, VARIN4
  983.  
  984.  
  985.    ************************************************************
  986.  
  987.   STATCOR
  988.    Derives means, variances, ranges, and correlations for variables in
  989.    a STATPAC data file.  Qualified values are included in the computations.
  990.    Link with:  IOS
  991.  
  992.  
  993.  
  994.  
  995.   STDGRM$
  996.    A BASIC program for screen plotting a stereographic-type diagram
  997.    from a .CHR file made from a .STP file (using program STP2CHR)
  998.    derived as output from program EQSPIN.
  999.  
  1000.   STP2CHR
  1001.    Produces a standard-formatted ASCII file (to use as input to
  1002.    BASIC programs) from a binary STATPAC file.
  1003.    Link with:  IOS
  1004.  
  1005.   STP2CMN
  1006.    Produces an ASCII file for transfer via telephone lines.
  1007.    Link with:  IOS
  1008.  
  1009.   STPMEN&.FOR
  1010.    Displays on the screen the names of programs that are helpful in
  1011.    kriging and asks the user to enter the name of the particular
  1012.    program which is to be executed.  The requested program is then run.
  1013.    After normal termination of the requested program, the list of names
  1014.    reappears on the screen and the user can again name a program to be
  1015.    run.  Program STPMENU& is invoked by STPMENU.BAT.  To execute the
  1016.    batch process, just type the following command:  STPMENU
  1017.    Links required:  BEEP,CLEARS
  1018.  
  1019.   STPMENU.BAT
  1020.    Batch file which invokes STPMEN&.
  1021.  
  1022.   STPSORT
  1023.    Sorts the rows of a STATPAC input file by primary row ID, by
  1024.    secondary row ID, or by one to three selected STATPAC variables.
  1025.    Sorting can be specified to be in either ascending or descending
  1026.    order.  The STATPAC file cannot exceed 3000 rows.  For STATPAC
  1027.    variables, the user may specify a sort on the absolute values of
  1028.    the variables rather than the signed values.  The sorted rows are
  1029.    written on a STATPAC output file.
  1030.    Link with:  BEEP, CKSAFE, IOS, B2SORT, FSORT, ROSORT, TICKERS
  1031.  
  1032.   TABFIL
  1033.    Used to convert an ASCII data file to a binary STATPAC file.
  1034.    Each observation in the ASCII file must be represented by two
  1035.    rows. The first row must contain the observation ID (up to 16
  1036.    characters in columns 1-16).  The second row must contain the
  1037.    data values separated by commas or blanks.  Do not use qualifying
  1038.    codes.
  1039.    Link with:  IOS
  1040.  
  1041.   TABRAN
  1042.    This program creates a table of numbers arranged in a random order.
  1043.    User specifies the starting numbers of the sequence and the total
  1044.    number of values required.
  1045.    Link with:  RAND, TICKERS
  1046.  
  1047.  
  1048.  
  1049.  
  1050.   TABQ
  1051.    Produces a summary table of the number and kinds of qualifying
  1052.    codes in a STATPAC data file.
  1053.    Link with:  IOS
  1054.  
  1055.   TERFIL
  1056.    To enter data into a STATPAC file from the keyboard.
  1057.    Link with:  IOS
  1058.  
  1059.   TERFIL$
  1060.    To enter data into an ASCII file with format standardized for the
  1061.    BASIC programs.
  1062.  
  1063.   TERPLT
  1064.    Used to plot a crude ternary diagram on the printer.  Any three
  1065.    variables can be selected from the STATPAC data file.
  1066.    Link with:  IOS
  1067.  
  1068.   UCODERET
  1069.    (User_CODEd_RETriever) retrieves from a STATPAC input file those
  1070.    rows which meet selection criteria specified by the user in the
  1071.    associated function IWANT.  (Logical function IWANT begins in
  1072.    line 74 of the FORTRAN source program.)  The user must 1) recode
  1073.    function IWANT so that it expresses the desired retrieval criteria;
  1074.    2) compile the FORTRAN source program; and 3) link the resulting
  1075.    object module UCODERET.OBJ with IOS.OBJ.  The user is given the
  1076.    option of retrieving only those rows which meet the user's selection
  1077.    criteria, or only those rows which do not.  The retrieved rows
  1078.    are written on a STATPAC output file.
  1079.    Link with:  IOS
  1080.  
  1081.   WHATQ
  1082.    Creates a table showing the numeric values associated with each
  1083.    of the six qualifying codes that can be present in a STATPAC data
  1084.    file.  If more than one numeric value is associated with any
  1085.    given code, the data file should be processed through GXFIXX or
  1086.    some similar routine before any type of statistical analysis is
  1087.    performed.
  1088.    Link with:  IOS
  1089.  
  1090.   XYDGRM$
  1091.    A BASIC program for screen plotting points on an XY-type diagram
  1092.    using a .CHR file.  The .CHR file is generally derived from a
  1093.    STATPAC (.STP) file using program STP2CHR.
  1094.  
  1095.   XYPLOT
  1096.    Writes for later printing a character output file containing a
  1097.    crude x versus y scatter diagram of any two selected STATPAC
  1098.    variables.  The graph displays as numbers 1-9, the number of data
  1099.    pairs which occur at each point on the plot.
  1100.    Link with:  IOS
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.                              References cited
  1107.  
  1108.  
  1109. Efroymson, M. A., 1960, Multiple regression analysis, in Ralston, A.,
  1110.      and Wilf, H. S., eds., Mathematical methods for digital computers:
  1111.      John Wiley & Sons, New York, p. 191-203.
  1112.  
  1113. Journel, A. G., and Huijbregts, Ch. J., 1978, Mining geostatistics:
  1114.      Academic Press, New York, 600 p.
  1115.  
  1116. Miesch, A. T., 1976a, Q-mode factor analysis of geochemical and petrologic
  1117.      data matrices with constant row-sums: U.S. Geological Survey Professional
  1118.      Paper 574-G, 47 p.
  1119.  
  1120. ___________, 1976b, Interactive computer programs for petrologic modeling
  1121.      with extended Q-mode factor analysis:  Computers & Geosciences, v. 2,
  1122.      no. 4, p. 439-492.
  1123.  
  1124. ___________, 1981, Computer methods for geochemical and petrologic mixing
  1125.      problems, in Merriam, D. F., ed., Computer applications in the earth
  1126.      sciences:  Plenum Press, New York, p. 243-265.
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.