Process Help

STATNP - compute non-parametric summary statistics on multiple fields

 

Process Name

Menu Path

Link to Command Table

STATNP

Click here

 

Introduction

Calculates non-parametric summary statistics on numeric fields in a file.

How to use

The following statistics are calculated for each numeric variable in turn:-

  • total number of records in the file.
  • number of samples (excluding absent data).
  • number of absent data values.
  • minimum, maximum and range.
  • mid-range.
  • median and median deviation.
  • 10th and 90th percentile.

These results are displayed on the terminal, and can be copied to the print device. In addition a cumulative frequency plot on a normal probability scale can be calculated for each variable, and sent to the printer or printfile.


Files, Fields and Parameters

Input Files

Name

Description

I/O Status

Required

Type

IN

Input file.

Input

Yes

Table

FIELDLST

File to supply selected fields.

Input

No

Undefined

Output Files

Name

I/O Status

Required

Type

Description

Fields

Name

Description

Source

Required

Type

Default

F1

First field for statistics. No fields specified means all.

IN

No

Numeric

Undefined

F2

Second field for statistics.

IN

No

Numeric

Undefined

F3

Third field for statistics.

IN

No

Numeric

Undefined

F4

Fourth field for statistics.

IN

No

Numeric

Undefined

F5

Fifth field for statistics.

IN

No

Numeric

Undefined

F6

Sixth field for statistics.

IN

No

Numeric

Undefined

F7

Seventh field for statistics.

IN

No

Numeric

Undefined

F8

Eighth field for statistics.

IN

No

Numeric

Undefined

F9

Ninth field for statistics.

IN

No

Numeric

Undefined

F10

Tenth field for statistics.

IN

No

Numeric

Undefined

FIELDNAM

Field in FIELDLST to identify selected fields.

FIELDLST

No

Character

Undefined

Parameters

Name

Description

Required

Default

Range

Values

PLOT

 

Option

Description

1

send cumulative frequency plots to printer or print file (0).

No

0

0,1

0,1


Notes

By default, statistics are calculated for all numeric variables (up to 10 fields can be defined; more than 10 if a &FIELDLST is specified).


Example

Example 1

Statistics are calculated for the field Au.

!STATNP     &IN(ASSAYS), F1(Au)

Example 2

Statistics are calculated for all numeric fields in the file.

!STATNP     &IN(ASSAYS)

 


Error and Warning Messages

Message

Description

Solution

>>> ERR 121 <<< ( fileno) IN STATNP

File read error. Fatal; the process is exited.

Check the &IN file and its fields.

 

 

 

>>> ERR 122 <<< ( fileno) IN STATNP

No numeric fields in file, or fields specified were not numeric. Fatal; the process is exited.

Check that the &IN file contains numeric fields.

 

 

 

DATA FILE EMPTY - PROCESS TERMINATED

The input file contains no data. Fatal; the process is exited.

Check that the &IN file contains data.