home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / bit / listserv / statl / 2440 < prev    next >
Encoding:
Text File  |  1993-01-25  |  4.6 KB  |  111 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!UCRAC1.UCR.EDU!JAMES
  3. Message-ID: <930125101811.2041112d@UCRAC1.UCR.EDU>
  4. Newsgroups: bit.listserv.stat-l
  5. Date:         Mon, 25 Jan 1993 10:18:11 -0800
  6. Sender:       STATISTICAL CONSULTING <STAT-L@MCGILL1.BITNET>
  7. From:         JAMES@UCRAC1.UCR.EDU
  8. Subject:      excel: an example of how NOT to send/apply zaps
  9. Lines: 100
  10.  
  11. This somehow makes me think of that banal saying that 'When the only tool you
  12. have is a hammer, all problems look like nails' (or something like that)...
  13. Anyway folks who insist on using spreadsheets for statistical analyses might
  14. possibly be interested in this.
  15.  
  16. What a nightmare it would be if fixes/zaps/patches to major statiscal packages
  17. were distributed in similar fashion to that apparently used by Excel!
  18.  
  19. james ssemakula
  20. u.c. riverside
  21.  
  22. ------------------- begin forwarded  message-----------------------------------
  23. From:   SMTP%"BSCS-L%EMUVM1.BitNet@pucc.PRINCETON.EDU" 25-JAN-1993 00:32:31.77
  24. To:     JAMES
  25. CC:
  26. Subj:   EXCEL 4.0 REGRESSION BUG AND FIX
  27.  
  28. Date:         Sun, 24 Jan 1993 21:56:00 EST
  29. Reply-To:     Business School Computing Support
  30.  <BSCS-L%EMUVM1.BitNet@pucc.PRINCETON.EDU>
  31. Sender:       Business School Computing Support
  32.  <BSCS-L%EMUVM1.BitNet@pucc.PRINCETON.EDU>
  33. From:         "Eric R. Fliegel" <EFLIEGEL%EMUBUS.BitNet@pucc.PRINCETON.EDU>
  34. Subject:      EXCEL 4.0 REGRESSION BUG AND FIX
  35. To:           Multiple recipients of list BSCS-L
  36.  <BSCS-L%EMUVM1.BitNet@pucc.PRINCETON.EDU>
  37.  
  38. >>> I THOUGHT SOME OF YOU WOULD BE INTERESTED IN THIS.
  39.     HERE IS THE MESSAGE THAT MY EXCEL CONTACT SENT TO HIS TECHNICAL GROUP:
  40.  
  41. Eric Fliegel at Emory University is reporting the following two problems in
  42. Excel's regression function:
  43.  
  44. 1. It is possible for an independent variable to be dependent on
  45. another independent variable without Excel generating an error message.
  46.  It seems Excel should not allow a user to do this.
  47.  
  48. 2. A regression is run on the following data:
  49.  
  50. X - independent variable                Y - dependent variable
  51. =====================           ====================
  52. .6                              220
  53. .62                             200
  54. .58                             280
  55. .6                              250
  56. .64                             190
  57. .62                             240
  58. .
  59.  
  60. When Excel runs this regression, Excel reports the following values:
  61.  
  62. Significant F = .0301
  63. P Value = .0216
  64.  
  65. According to Emory, the Significant F and P Values should be the same.
  66. SAS reports the values as being the same on the identical data set.
  67.  
  68. >>> HERE WAS THEIR RESPONSE:
  69.  
  70. We have some input on one of the problems you reported in Excel's
  71. regression function.  Our description of the problem as it appears in
  72. our database is listed below.  Also listed are changes that can be made
  73. to the Excel Add-in Macro REGRESS.XLA which will correct the problem
  74. (REGRESS.XLA) is the macro used to perform the regression in Excel. We
  75. plan to implement the fix below in the next version of Excel.
  76.  
  77. Database entry is as follows:
  78.  
  79. The P-value output from the ATP Regression procedure is incorrect.
  80. This problem was tracked down by one of our customers to cells B383 and
  81. B391 in REGRESS.XLA.  Changing the 12,1,1,1 strings in the OFFSET()
  82. formulas in these two cells to 11,1,1,1 should correct the problem with
  83. the P-value and also cause the P-value to match the Significance F value.
  84.  
  85. Line 383 is:
  86. =FORMULA(OUTPUT(TDIST(ABS(OFFSET(TEXTREF(soutrng_txt),16,3,1,1)),OFFSET
  87. (TEXTREF(soutrng_txt),12,1,1,1),2)),OFFSET(TEXTREF(soutrng_txt),16,4,1,1))
  88.  
  89. Should be:
  90. =FORMULA(OUTPUT(TDIST(ABS(OFFSET(TEXTREF(soutrng_txt),16,3,1,1)),OFFSET
  91. (TEXTREF(soutrng_txt),11,1,1,1),2)),OFFSET(TEXTREF(soutrng_txt),16,4,1,1))
  92.  
  93. And line 391 is:
  94. =FORMULA(OUTPUT(TDIST(ABS(OFFSET(TEXTREF(soutrng_txt),regress_rows1+
  95. Counter,3,1,1)),OFFSET(TEXTREF(soutrng_txt),12,1,1,1),2)),OFFSET(TEXTREF(
  96. soutrng_txt),regress_rows1+Counter,4,1,1))
  97.  
  98. And should be:
  99. =FORMULA(OUTPUT(TDIST(ABS(OFFSET(TEXTREF(soutrng_txt),regress_rows1+
  100. Counter,3,1,1)),OFFSET(TEXTREF(soutrng_txt),11,1,1,1),2)),OFFSET(TEXTREF(
  101. soutrng_txt),regress_rows1+Counter,4,1,1))
  102.  
  103. >>> FOR YOUR INFORMATION, TO EDIT AN ADD-IN (.XLA) FILE, HOLD THE <SHIFT> KEY
  104. DOWN WHEN YOU SELECT THE FILE.  THE REGRESS.XLA FILE IS IN THE
  105. \EXCEL4\LIBRARY\ANALYSIS SUBDIRECTORY.  SIMPLY MAKE THE CHANGES TO LINES 383
  106. AND 391 AND IT WORKS!  FOR MACINTOSH USERS, THE FILE REGRESSION IS IN THE
  107. ANALYSIS TOOLS FOLDER WHICH IS IN THE MACRO LIBRARY FOLDER WHICH IS IN THE
  108. EXCEL4 FOLDER.  NOTE THAT THE LINES TO MODIFY ARE 384 AND 392.  HOPE THIS
  109. HELPS.  ERic Fliegel
  110. ------------------------end forwarded message----------------------------
  111.