home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 521.lha / Chi-Square / Readme < prev    next >
Encoding:
Text File  |  1991-06-10  |  3.0 KB  |  72 lines

  1. ----------------------------------------------------------------------------
  2.  
  3.           Chi-Square STATS:
  4.                A program to calculate the Chi-Square statistic
  5.                and p value from a data file
  6.  
  7.           written, and compiled in HiSoft BASIC Professional by
  8.                C. Niederberger  2/91
  9.  
  10. ----------------------------------------------------------------------------
  11.  
  12.  
  13. Ever want a simple, portable program to calculate the Chi-Square statistic
  14.      and p value from a data table created by your favorite spreadsheet or
  15.      word processor on your Amiga?  And couldn't find one?  Well, neither
  16.      could I.
  17.  
  18. So I wrote this simple basic program to take an ASCII file (choose "general"
  19.      on your word processor when saving the file, or "print to file" on your
  20.      spreadsheet) and perform the Chi-Square test.
  21.  
  22. Just make a data file starting with the number of columns followed by the
  23.      number of rows (**must** be integers) followed by the data table."
  24.  
  25. For example, an acceptable table would be:
  26.  
  27.      4 3
  28.      11 12 13 10
  29.      19 21 11 3
  30.      1 4 67 91
  31.  
  32. An example table is included in this archive under "TestData".
  33.  
  34. Note that the program does not care about spaces in the data file.  It is"
  35.      **critical**, however, that extra carriage returns are not present in
  36.      the data file.  The program will treat extra carriage returns as zeros,
  37.      and it will not perform the test if it thinks you have too much data.
  38.      So, IF YOU HAVE EXTRA CARRIAGE RETURNS IN YOUR DATA FILE, REMOVE THEM.
  39.  
  40. The program will ask you where the file is, e.g. ram:testdata, and then will
  41.      print the results.  Simple!!
  42.  
  43. I use this kind of analysis a lot, and I thought that someone out there
  44.      could possibly use this program.  I don't believe in selling public
  45.      domain programs myself--I do something else for a living, and I program
  46.      for fun.  But I would appreciate feedback, so just send me some
  47.      EMAIL if you download this program.
  48.  
  49. I intend to keep writing code for statistics tests, and as long as there is
  50.      any interest, I'll keep downloading these programs.  I don't believe in
  51.      using commercial statistics packages (I don't believe in a lot of
  52.      things) because I think the scientist or whoever distances him/herself
  53.      from the analysis, and I HATE seeing commercial statistics programs
  54.      referenced in the scientific literature instead of the actual test.
  55.      HOW TACKY!  So I included the HiSoft BASIC code in this archive as well
  56.      as the program--modify it in any way that you see fit.
  57.  
  58. Remember--send feedback!
  59.  
  60.                           Craig Niederberger  2/91
  61.  
  62. ----------------------------------------------------------------
  63.  
  64. Notes:
  65.      Includes file selector (Thanks Jeff Glatt and Steven Kapplin!)
  66.           note:  requires requester.library and requester.bmap
  67.                  (included in this archive) to be placed in
  68.                  libs:
  69.      Routines to calculate p value for the Chi-Square statistic were
  70.      imported from "Numberical Recipes in Pascal: The Art of Scientific
  71.      Computing", W.H. Press et. al.  What a great book!
  72.