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_b( Y, X, 1, 1<br />

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

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

returns the aggregated r2 value (coefficient of determination) of a linear regression defined by the equation<br />

y=mx+b for a series of coordinates represented by paired numbers in x-expression and y-expression iterated<br />

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

will result in 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_r2 function supports Set Analysis (page<br />

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

Examples:<br />

linest_r2( Y, X )<br />

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

linest_r2( total Y, X )<br />

linest_r2( total Y, X)<br />

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

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

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

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

returns the aggregated standard error of the m value of a linear regression defined by the equation y=mx+b<br />

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

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

result in 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_sem 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_sem( Y, X )<br />

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

linest_sem( total Y, X )<br />

linest_sem( total Y, X)<br />

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

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

777

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

Saved successfully!

Ooh no, something went wrong!