ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
2.6 KiB

  1. TIME SERIES-LINEAR TREND
  2. THIS PROGRAM COMPUTES A LINEAR TREND FOR A TIME SERIES.
  3. THE DETRENDED VALUES FROM THE SERIES ARE ALSO PRINTED.
  4. PRESS ENTER TO BEGIN.?
  5. GIVE AN UPPER BOUND ON THE NUMBER OF OBSERVATIONS YOU INTEND TO
  6. USE.THIS WILL BE THE GREATEST NUMBER OF OBSERVATIONS POSSIBLE.
  7. NUMBER = ? 10
  8. INPUT OBSERVATIONS 1 BY 1, PRESSING ENTER AFTER EACH.
  9. INPUT 99999 AND ENTER WHEN DONE.
  10. PRESS ENTER TO BEGIN? 12345
  11. OBSERVATION 1 (99999 TO END)? 12
  12. OBSERVATION 2 (99999 TO END)? 9
  13. OBSERVATION 3 (99999 TO END)? 12
  14. OBSERVATION 4 (99999 TO END)? 9
  15. OBSERVATION 5 (99999 TO END)? 12
  16. OBSERVATION 6 (99999 TO END)? 9
  17. OBSERVATION 7 (99999 TO END)? 12
  18. OBSERVATION 8 (99999 TO END)? 99999
  19. TREND EQUATION IS T = 10.7143 + 0 Y WHERE T IS THE TREND
  20. VALUE AND Y IS NO. OF YEARS FROM ORIGIN.
  21. OBSERVATION # OBSERVATION VALUE SMOOTHED VALUE DETRENDED
  22. 1 12.00 10.7143 1.12
  23. 2 9.00 10.7143 0.84
  24. 3 12.00 10.7143 1.12
  25. 4 9.00 10.7143 0.84
  26. 5 12.00 10.7143 1.12
  27. 6 9.00 10.7143 0.84
  28. 7 12.00 10.7143 1.12