naginterfaces.library.contab.binary_service¶
- naginterfaces.library.contab.binary_service(x)[source]¶
binary_service
is a service function which may be used prior to callingbinary()
to calculate the frequency distribution of a set of dichotomous score patterns.For full information please refer to the NAG Library document for g11sb
https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/g11/g11sbf.html
- Parameters
- xbool, array-like, shape
must be set equal to if , and if , for , for .
- Returns
- nsint
The number of different score patterns, .
- xbool, ndarray, shape
The first rows of contain the different score patterns.
- irlint, ndarray, shape
The frequency with which the th row of occurs, for .
- Raises
- NagValueError
- (errno )
On entry, .
Constraint: .
- (errno )
On entry, .
Constraint: .
- Notes
When each of individuals responds to each of dichotomous variables the data assumes the form of the matrix defined below
where the take the value of or and , for , denotes the score pattern of the th individual.
binary_service
calculates the number of different score patterns, , and the frequency with which each occurs. This information can then be passed tobinary()
.