freq_to_unit function

Individual rankings/orderings from the frequency distribution

Individual rankings/orderings from the frequency distribution

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

freq_to_unit(freq_distr)

Arguments

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

Returns

Numeric N$$x$$K data matrix of observed individual sequences.

Examples

library(gtools) K <- 4 perm_matrix <- permutations(n=K, r=K) freq_data <- cbind(perm_matrix, sample(1:factorial(K))) freq_data freq_to_unit(freq_distr=freq_data)

Author(s)

Cristina Mollica and Luca Tardella

  • Maintainer: Cristina Mollica
  • License: GPL (>= 2)
  • Last published: 2019-09-04

Useful links