Learn R Programming

MSmix

This package allows the fit and analysis of finite Mixtures of Mallows models with Spearman Distance for full and partial rankings with arbitrary missing positions. Inference is conducted within the maximum likelihood framework via Expectation-Maximization algorithms. Estimation uncertainty is tackled via diverse versions of bootstrapping as well as via Hessian-based standard errors calculations.

The most relevant reference of the methods is Crispino, Mollica, Astuti and Tardella (2023) https://link.springer.com/article/10.1007/s11222-023-10266-8

Installation

To install the current release, use

install.packages("MSmix")

To install the current development version, use

#install.packages("remotes")
remotes::install_github("crispinomarta/MSmix")

Citation

citation('MSmix')
#>To cite package 'MSmix' in publications use:
#>
#>  Crispino, M., Mollica, C., Astuti, V., Tardella, L. (2023). Efficient and accurate inference for mixtures of
#>  Mallows models with Spearman distance. Statistics and Computing, Vol. 33(98), pages 442--458, ISSN: 0960-3174,
#>  DOI: 10.1007/s11222-023-10266-8.
#>
#> A BibTeX entry for LaTeX users is
#> 
#>  @Article{,
#>    title = {Efficient and accurate inference for mixtures of Mallows models
#>                  with Spearman distance},
#>    author = {Marta Crispino and Cristina Mollica and Valerio Astuti and Luca Tardella},
#>    year = {2023},
#>    journal = {Statistics and Computing},
#>    volume = {33},
#>    number = {98},
#>    issn = {0960-3174},
#>    doi = {10.1007/s11222-023-10266-8},
#>  }

Copy Link

Version

Install

install.packages('MSmix')

Monthly Downloads

218

Version

2.0.0

License

GPL (>= 3)

Maintainer

Cristina Mollica

Last Published

March 25th, 2025

Functions in MSmix (2.0.0)

ranks_antifragility

Antifragility Data (complete rankings with covariates)
rMSmix

Random samples from a mixture of Mallows models with Spearman distance
likMSmix

(Log-)likelihood for mixtures of Mallows models with Spearman distance
expected_spear_dist

Expectation of the Spearman distance
plot.emMSmix

Plot the MLEs for the fitted mixture of Mallows models with Spearman distance
partition_fun_spear

Partition function of the Mallows model with Spearman distance
fitMSmix

MLE of mixtures of Mallows models with Spearman distance via EM algorithms
ranks_beers

Beers Data (partial rankings with covariate)
plot.dist

Plot the Spearman distance matrix
plot.data_descr

Plot descriptive statistics for partial rankings
spear_dist

Spearman distance
var_spear_dist

Variance of the Spearman distance
ranks_sports

Sports Data (complete rankings with covariates)
summary.emMSmix

Summary of the fitted mixture of Mallows models with Spearman distance
rearrange_output_mix

Arrange the output of MLE of mixtures of Mallows models with Spearman distance via EM algorithms
spear_dist_distr

Spearman distance distribution under the uniform ranking model
ranks_horror

Arkham Horror Data (complete rankings)
ranks_read_genres

Reading Genres Data (partial rankings with covariates)
bicMSmix

BIC and AIC for mixtures of Mallows models with Spearman distance
print.bootMSmix

Print of the bootstrap confidence intervals for the fitted mixture of Mallows models with Spearman distance
data_censoring

Censoring of full rankings
data_completion

Completion of partial rankings with reference full rankings
bootstrapMSmix

Bootstrap confidence intervals for the fitted mixture of Mallows models with Spearman distance
MSmix-package

Finite Mixtures of Mallows Models with Spearman Distance for Full and Partial Rankings
confintMSmix

Asymptotic confidence intervals for the fitted mixture of Mallows models with Spearman distance
data_conversion

Switch data format from rankings to orderings and vice versa
data_augmentation

Data augmentation of partial rankings
data_description

Descriptive summaries for partial rankings