unit_to_freq: Frequency distribution from the individual rankings/orderings

View source: R/PLMIXfunctions.R

unit_to_freqR Documentation

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)

Arguments

data

Numeric N\timesK data matrix of observed individual sequences.

Value

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

Author(s)

Cristina Mollica and Luca Tardella

Examples


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

PLMIX documentation built on July 1, 2025, 1:12 a.m.