Learn R Programming

PLMIX (version 2.2.0)

unit_to_freq: Frequency distribution from the individual rankings/orderings

Description

Construct the frequency distribution of the distinct observed sequences from the dataset of individual rankings/orderings.

Usage

unit_to_freq(data)

Value

Numeric matrix of the distinct observed sequences with the corresponding frequencies indicated in the last \((K+1)\)-th column.

Arguments

data

Numeric \(N\)\(\times\)\(K\) data matrix of observed individual sequences.

Author

Cristina Mollica and Luca Tardella

Examples

Run this code

## Frequency distribution for the APA top-ordering dataset
data(d_apa)
unit_to_freq(data=d_apa)

Run the code above in your browser using DataLab