View source: R/PLMIXfunctions.R
freq_to_unit | R Documentation |
Construct the dataset of individual rankings/orderings from the frequency distribution of the distinct observed sequences.
freq_to_unit(freq_distr)
freq_distr |
Numeric matrix of the distinct observed sequences with the corresponding frequencies indicated in the last |
Numeric N
\times
K
data matrix of observed individual sequences.
Cristina Mollica and Luca Tardella
library(e1071)
K <- 4
perm_matrix <- permutations(n=K)
freq_data <- cbind(perm_matrix, sample(1:factorial(K)))
freq_data
freq_to_unit(freq_distr=freq_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.