Description Usage Arguments Value References Examples
Generate a sample of n permutations from a Generalized Mallows Model (GMM).
1 2 | rgmm(n, sigma0, theta, dist.name = "kendall",
sampling.method = "multistage")
|
n |
the number of permutations to be generated |
sigma0 |
central permuation of the GMM |
theta |
dispersion parameter vector of the GMM |
dist.name |
optional used name of the distance used in the GMM. One of: kendall (default), cayley, hamming |
sampling.method |
optional name of the sampling algorithm. One of: multistage, gibbs (default) |
A matrix contaning a sample of permutations from the specified ditribution
"Ekhine Irurozki, Borja Calvo, Jose A. Lozano (2016). PerMallows: An R Package for Mallows and Generalized Mallows Models. Journal of Statistical Software, 71(12), 1-30. doi:10.18637/jss.v071.i12"
1 2 3 4 5 |
Loading required package: Rcpp
[,1] [,2] [,3] [,4] [,5]
[1,] 2 1 3 4 5
[2,] 1 3 2 4 5
[,1] [,2] [,3] [,4] [,5]
[1,] 1 2 3 5 4
[2,] 3 2 1 4 5
[,1] [,2] [,3] [,4] [,5]
[1,] 3 2 1 4 5
[2,] 1 4 3 2 5
[,1] [,2] [,3] [,4] [,5]
[1,] 1 2 5 4 3
[2,] 1 3 5 4 2
[,1] [,2] [,3] [,4] [,5]
[1,] 1 2 3 5 4
[2,] 1 4 3 5 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.