Gri Commands

1: Introduction
2: Simple example
3: Fancy example
4: Running Gri
5: Programming Gri
6: General Issues
7: X-Y Plots
8: Contour Plots
9: Image Plots
10: Examples
11: Handling Data
12: Gri Commands
13: Gri Extras
14: Evolution of Gri
15: Installing Gri
16: Gri Bugs
17: System Tools
18: Acknowledgments
19: License
20: Newsgroup

21: Concept Index

12.34: The `regress' Command

`regress {y vs x [linear]}|{x vs y [linear]}'

Perform linear regression of `y' as a function of `x' or `x' as a function of `y'.

  • `regress y vs x' Linear regression of y vs x. Several quantities are reported and also saved into builtin variables. The intercept is defined as `..coeff0..', it's 95 percent confidence limit is defined as `..coeff0_sig..'. Thus the confidence range is `..coeff0..-..coeff0_sig..' to `..coeff0..+..coeff0_sig..'. Similarly the slope and confidence limit are stored in `..coeff1..' and `..coeff1_sig..'

    The squared correlation coefficient is stored in `..R2..'.

    Historical note prior to version 2.1.15, a different meaning was attached to `..coeff0_sig..' and `..coeff1_sig..'; they used be defined as standard errors, without having been multiplied by the appropriate student-t coefficient.

  • `regress x vs y' Linear regression of x vs y; for notation see above.

  • `regress y vs x linear' Linear regression of y vs x; for notation see above.

  • `regress x vs y linear' Linear regression of x vs y; for notation see above.