21.01.2013 Views

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

linest_ssreg ([{set_expression}][ distinct ] [ total []<br />

] y-expression, x-expression [, y0 [, x0 ]] )<br />

returns the aggregated regression sum of squares of a linear regression defined by the equation y=mx+b for a<br />

series of coordinates represented by paired numbers in x-expression and y-expression iterated over the chart<br />

dimension(s). Text values, null values and missing values in any or both pieces of a data-pair will result in<br />

the entire data-pair to be disregarded.<br />

An optional valye y0 may be stated forcing the regression line to pass through the y-axis at a given point.<br />

By stating both y0 and x0 it is possible to force the regression line to pass through a single fixed coordinate.<br />

Unless both y0 and x0 are stated, the function requires at least two valid data-pairs to calculate. If y0 and x0<br />

are stated, a single data pair will do.<br />

This function has the same limitations for nested aggregation as the avg([{set_expression}] [ distinct ] [<br />

total []] expression) (page 774) function. The linest_ssreg function supports Set Analysis<br />

(page 799) and the total qualifier in the same way as the avg([{set_expression}] [ distinct ] [ total []] expression) (page 774)function.<br />

Examples:<br />

linest_ssreg( Y, X )<br />

linest_ssreg( A/B, X*Y/3 )<br />

linest_ssreg( total Y, X )<br />

linest_ssreg( total Y, X)<br />

linest_ssreg( Y, X, 0 )<br />

linest_ssreg( Y, X, 1, 1 )<br />

linest_ssresid ([{set_expression}] [ distinct ] [ total [] ] y-expression, x-expression [, y0 [, x0 ]] )<br />

returns the aggregated residual sum of squares of a linear regression defined by the equation y=mx+b for a<br />

series of coordinates represented by paired numbers in x-expression and y-expression iterated over the chart<br />

dimension(s). Text values, null values and missing values in any or both pieces of a data-pair will result in<br />

the entire data-pair to be disregarded.<br />

An optional valye y0 may be stated forcing the regression line to pass through the y-axis at a given point.<br />

By stating both y0 and x0 it is possible to force the regression line to pass through a single fixed coordinate.<br />

Unless both y0 and x0 are stated, the function requires at least two valid data-pairs to calculate. If y0 and x0<br />

are stated, a single data pair will do.<br />

This function has the same limitations for nested aggregation as the avg([{set_expression}] [ distinct ] [<br />

total []] expression) (page 774) function. The linest_ssresid function supports Set Analysis<br />

(page 799) and the total qualifier in the same way as the avg([{set_expression}] [ distinct ] [ total []] expression) (page 774) function.<br />

Examples:<br />

780<br />

linest_ssresid( Y, X )<br />

linest_ssresid( A/B, X*Y/3 )<br />

linest_ssresid( total Y, X )<br />

linest_ssresid( total Y, X)<br />

linest_ssresid( Y, X, 0 )<br />

linest_ssresid( Y, X, 1, 1 )

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!