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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

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

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

of coordinates represented by paired numbers in x-expression and y-expression iterated over the chart dimension(s).<br />

Text values, null values and missing values in any or both pieces of a data-pair will result in the<br />

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_df 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_df( Y, X )<br />

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

linest_df( total Y, X )<br />

linest_df( total Y, X)<br />

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

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

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

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

returns the aggregated F statistic (r2/(1-r2)) of a linear regression defined by the equation y=mx+b for a series<br />

of coordinates represented by paired numbers in x-expression and y-expression iterated over the chart dimension(s).<br />

Text values, null values and missing values in any or both pieces of a data-pair will result in the<br />

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_f 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_f( Y, X )<br />

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

linest_f( total Y, X )<br />

linest_f( total Y, X)<br />

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

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

779

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

Saved successfully!

Ooh no, something went wrong!