Includes functions to work with the Mallows and Generalized Mallows Models. The considered distances are Kendall's-tau, Cayley, Hamming and Ulam and it includes functions for making inference, sampling and learning such distributions, some of which are novel in the literature. As a by-product, PerMallows also includes operations for permutations, paying special attention to those related with the Kendall's-tau, Cayley, Ulam and Hamming distances. It is also possible to generate random permutations at a given distance, or with a given number of inversions, or cycles, or fixed points or even with a given length on LIS (longest increasing subsequence).

Install the latest version of this package by entering the following in R:

`install.packages("PerMallows")`

Author | Ekhine Irurozki <ekhine.irurozqui@ehu.eus>, Borja Calvo <borja.calvo@ehu.eus>, Jose A. Lozano <ja.lozano@ehu.eus> |

Date of publication | 2016-08-03 11:13:54 |

Maintainer | Ekhine Irurozki <ekhine.irurozqui@ehu.eus> |

License | GPL (>= 2) |

Version | 1.12 |

**compose:** Compose permutations

**count.perms:** Count permutations at a distance

**cycle2str:** Friendly display the cycles

**cycles2perm:** Get the permutation given the cycles

**data.apa:** Sample of permutations APA

**data.order:** Sample of permutations

**decomp2perm:** Get a permutation consistent with a decomposition vector

**dgmm:** Calculate the probability of a permutation in a GMM

**distance:** Compute the distance between permutations

**dmm:** Calculate the probability of a permutation in a MM

**expectation.gmm:** Compute the expected distance, GMM under the Hamming distance

**expectation.mm:** Compute the expected distance, MM under the Hamming distance

**freq.matrix:** Compute the frequency matrix

**generate.aux.files:** Generates the files for Ulam

**identity.permutation:** Generate identity the permutation

**insert:** Insert operator

**inverse.perm:** Generate inverse permutation

**inversion:** Inversion operator

**is.permutation:** Check if its argument is a permutation

**lgmm:** Learn a Generalized Mallows Model

**lgmm.theta:** MLE for theta - Generalized Mallows Model

**lmm:** Learn a Mallows Model

**lmm.theta:** MLE for theta - Mallows Model

**marginal:** Compute the marginal probability, GMM under the Hamming...

**maxi.dist:** Get the maximum value of the distance ebtween permutations

**order.ratings:** Convert rating to permutation

**perm2cycles:** Decompose a permutation in a set of cycles

**perm2decomp:** Get the decomposition vector

**perm.sample.med:** Sample of permutations

**perm.sample.small:** Sample of permutations

**permutations.of:** Generate every permutation of perm.length item

**rdist:** Generate a collection of permutations at a given distance

**read.perms:** Read a text file with a collection of permtuations

**rgmm:** Sample a Generalized Mallows Model

**rmm:** Sample a Mallows Model

**runif.permutation:** Random permutation

**swap:** Swap two items of a permutation

compose | Man page |

count.perms | Man page |

cycle2str | Man page |

cycles2perm | Man page |

data.apa | Man page |

data.order | Man page |

decomp2perm | Man page |

dgmm | Man page |

distance | Man page |

dmm | Man page |

expectation.gmm | Man page |

expectation.mm | Man page |

freq.matrix | Man page |

generate.aux.files | Man page |

identity.permutation | Man page |

insert | Man page |

inverse.perm | Man page |

inversion | Man page |

is.permutation | Man page |

lgmm | Man page |

lgmm.theta | Man page |

lmm | Man page |

lmm.theta | Man page |

marginal | Man page |

maxi.dist | Man page |

order.ratings | Man page |

perm2cycles | Man page |

perm2decomp | Man page |

perm.sample.med | Man page |

perm.sample.small | Man page |

permutations.of | Man page |

rdist | Man page |

read.perms | Man page |

rgmm | Man page |

rmm | Man page |

runif.permutation | Man page |

swap | Man page |

inst

inst/CITATION

inst/test.txt

src

src/Kendall.h

src/Lap.h

src/Ferrers_diagram.cpp

src/Generic.cpp

src/Ulam_disk.cpp

src/Ulam.h

src/Ulam.cpp

src/Cayley.cpp

src/main.cpp

src/Newton_raphson.h

src/Cayley.h

src/Ulam_disk.h

src/Exponential_model.h

src/Hamming.h

src/Ferrers_diagram.h

src/Generic.h

src/Kendall.cpp

src/Newton_raphson.cpp

src/Hamming.cpp

src/Wrapper.cpp

NAMESPACE

data

data/perm.sample.small.rda

data/perm.sample.med.rda

data/data.apa.rda

data/data.order.rda

R

R/PerMallows.R
vignettes

vignettes/PerMallows.tex

MD5

DESCRIPTION

man

man/identity.permutation.Rd
man/lmm.theta.Rd
man/decomp2perm.Rd
man/compose.Rd
man/rgmm.Rd
man/swap.Rd
man/order.ratings.Rd
man/perm.sample.med.Rd
man/cycles2perm.Rd
man/freq.matrix.Rd
man/data.apa.Rd
man/expectation.gmm.Rd
man/count.perms.Rd
man/distance.Rd
man/permutations.of.Rd
man/read.perms.Rd
man/inverse.perm.Rd
man/inversion.Rd
man/data.order.Rd
man/insert.Rd
man/lmm.Rd
man/generate.aux.files.Rd
man/expectation.mm.Rd
man/perm.sample.small.Rd
man/dgmm.Rd
man/lgmm.Rd
man/lgmm.theta.Rd
man/perm2decomp.Rd
man/perm2cycles.Rd
man/maxi.dist.Rd
man/cycle2str.Rd
man/rdist.Rd
man/dmm.Rd
man/marginal.Rd
man/runif.permutation.Rd
man/rmm.Rd
man/is.permutation.Rd
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.