2 Specification

3 Description

When each of n individuals responds to each of p dichotomous variables the data assumes the form of the matrix X defined below

X=x11x12…x1px21x22…x2p⋮⋮⋮xn1xn2…xnp=x̲1x̲2⋮x̲n,

where the x take the value of 0 or 1 and x̲l=xl1,xl2,…,xlp, for l=1,2,…,n, denotes the score pattern of the lth individual. G11SBF calculates the number of different score patterns, s, and the frequency with which each occurs. This information can then be passed to G11SAF.

On exit: the frequency with which the
lth row of X occurs, for l=1,2,…,s.

7: IFAIL – INTEGERInput/Output

On entry: IFAIL must be set to 0, -1​ or ​1. If you are unfamiliar with this parameter you should refer to Section 3.3 in the Essential Introduction for details.

For environments where it might be inappropriate to halt program execution when an error is detected, the value -1​ or ​1 is recommended. If the output of error messages is undesirable, then the value 1 is recommended. Otherwise, if you are not familiar with this parameter, the recommended value is 0. When the value -1​ or ​1 is used it is essential to test the value of IFAIL on exit.

On exit: IFAIL=0 unless the routine detects an error or a warning has been flagged (see Section 6).

6 Error Indicators and Warnings

If on entry IFAIL=0 or -1, explanatory error messages are output on the current error message unit (as defined by X04AAF).

Errors or warnings detected by the routine:

IFAIL=1

On entry,

IP<3,

or

N<7,

or

LDX<N.

7 Accuracy

Exact.

8 Further Comments

The time taken by G11SBF is small and increases with n.

9 Example

This example counts the frequencies of different score patterns in the following list: