Skip to main content

Sterr - script function

Sterr() returns the aggregated standard error (stdev/sqrt(n)) for a series of values represented by the expression iterated over a number of records as defined by a group by clause.

Syntax:  

Sterr ([distinct] expr)

Return data type: numeric

Arguments:  

Sterr arguments
Argument Description
expr The expression or field containing the data to be measured.
distinct If the word distinct occurs before the expression, all duplicates will be disregarded.

Limitations:  

Text values, NULL values and missing values are disregarded.

Examples and results:  

Add the example script to your document and run it. Then add, at least, the fields listed in the results column to a sheet in your document to see the result.

Examples and results
Example Result

Table1:

crosstable LOAD recno() as ID, * inline [

Observation|Comparison

35|2

40|27

12|38

15|31

21|1

14|19

46|1

10|34

28|3

48|1

16|2

30|3

32|2

48|1

31|2

22|1

12|3

39|29

19|37

25|2 ] (delimiter is '|');

 

Sterr1:

LOAD Type,

Sterr(Value) as MySterr

Resident Table1 Group By Type;

In a table with the dimensions Type and MySterr, the results of the Sterr() calculation in the load script are:

Type MySterr

Comparison 3.2674431

Observation 2.7968733

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!

Join the Analytics Modernization Program

Remove banner from view

Modernize without compromising your valuable QlikView apps with the Analytics Modernization Program. Click here for more information or reach out: ampquestions@qlik.com