LR

Member Of Menu: 
Stat
Argument Types: 
None
Result Type(s): 
Real
Invertible: 
No
Valid In Expression: 
No
Stack Diagram: 
Real1 Real2

This operation calculates the linear regression between the dependent and independent columns in the statistics data. It expects to find a variable called ∑DAT which has a set of statistics values stored in a real matrix. Each row in the real matrix represents a single set of samples. Each column contains one of the set of values associated with a single sample. It also expects to find a variable called ∑PAR which should be a list of four real values. The first two real values in the list is the column number of the independent and dependent columns. If the ∑PAR variable does not exist, then the operation assumes it should use column 1 and column 2 from the statistics data.

Real1 is the intercept and Real2 is the slope of the line calculated from the linear regression of the data. This information is also stored in the ∑PAR variable in the third and fourth values respectively in the list. These values are then used by the PREDV operation.