home *** CD-ROM | disk | FTP | other *** search
-
- #
- # This awk program was generated by ols.
- # It reads data from StdIn and prints predictions to StdOut.
- #
- # It is built for the data layout used when estimating.
- # However, this should not be hard to modify.
- #
-
- {
- x2 = $3;
- _constant = $1;
- y = $4;
-
- predicted = (3.935164*x2) \
- + (6.102074*_constant);
- error = y - predicted;
- print predicted " " y " " error;
- SSE += (error*error);
- }
-
- END {
- MSE = SSE/NR;
- print "MSE = " MSE ", SSE = " SSE > "/dev/tty";
- }
-
- # End of generated script.
-
-