# Category : Miscellaneous Language Source Code

Archive : FORTRN77.ZIP

Filename : STCHI2.FOR

C

C THIS SUBROUTINE COMPUTES CHI SQUARE FOR 2 BY 2 TABLES

C WITH YATES CORRECTION FOR CONTINUITY.

C

R1 = A + B

R2 = C + D

C1 = A + C

C2 = B + D

S = R1 + R2

E = ABS(A*D-B*C)

F = E-0.5*S

G = S*F*F

CHI2 = G/(R1*R2*C1*C2)

RETURN

END

Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/