Package: admix 2.6.1

admix: Package Admix for Admixture (aka Contamination) Models

Implements techniques to estimate the unknown quantities related to two-component admixture models, where the two components can belong to any distribution (note that in the case of multinomial mixtures, the two components must belong to the same family). Estimation methods depend on the assumptions made on the unknown component density; see Bordes and Vandekerkhove (2010) <doi:10.3103/S1066530710010023>, Patra and Sen (2016) <doi:10.1111/rssb.12148>, and Milhaud, Pommeret, Salhi, Vandekerkhove (2024) <doi:10.3150/23-BEJ1593>. In practice, one can estimate both the mixture weight and the unknown component density in a wide variety of frameworks. On top of that, hypothesis tests can be performed in one and two-sample contexts to test the unknown component density (see Milhaud, Pommeret, Salhi and Vandekerkhove (2022) <doi:10.1016/j.jspi.2021.05.010>, and Milhaud, Pommeret, Salhi, Vandekerkhove (2024) <doi:10.3150/23-BEJ1593>). Finally, clustering of unknown mixture components is also feasible in a K-sample setting (see Milhaud, Pommeret, Salhi, Vandekerkhove (2024) <https://jmlr.org/papers/v25/23-0914.html>).

Authors:Xavier Milhaud [aut, cre], Pierre Vandekerkhove [ctb], Denys Pommeret [ctb], Yahia Salhi [ctb]

admix_2.6.1.tar.gz
admix_2.6.1.zip(r-4.7)admix_2.6.1.zip(r-4.6)admix_2.6.1.zip(r-4.5)
admix_2.6.1.tgz(r-4.6-x86_64)admix_2.6.1.tgz(r-4.6-arm64)admix_2.6.1.tgz(r-4.5-x86_64)admix_2.6.1.tgz(r-4.5-arm64)
admix_2.6.1.tar.gz(r-4.7-arm64)admix_2.6.1.tar.gz(r-4.7-x86_64)admix_2.6.1.tar.gz(r-4.6-arm64)admix_2.6.1.tar.gz(r-4.6-x86_64)
admix_2.6.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION
card.svg |card.png
admix/json (API)

# Install 'admix' in R:
install.packages('admix', repos = c('https://xaviermilhaud.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/xaviermilhaud/admix-rpackage/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • allGalaxies - Measurements of heliocentric velocities
  • milkyWay - Dataset of heliocentric velocity for the Milky Way
  • mortality_sample - Dataset of deaths statistics in 11 european countries
  • stmf_small - Dataset of Short-term Mortality Fluctuations (STMF) from HMD

On CRAN:

Conda:

cpp

6.33 score 3 stars 20 scripts 725 downloads 2 mentions 23 exports 10 dependencies

Last updated from:1c2249ed6b. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK201
linux-devel-x86_64OK188
source / vignettesOK193
linux-release-arm64OK188
linux-release-x86_64OK177
macos-release-arm64OK168
macos-release-x86_64OK530
macos-oldrel-arm64OK201
macos-oldrel-x86_64OK368
windows-develOK171
windows-releaseOK182
windows-oldrelOK123
wasm-releaseOK151

Exports:admix_clusteradmix_estimadmix_modeladmix_testdecontaminated_cdfdecontaminated_densitydetect_support_typedistribution_typeget_cluster_membersget_cluster_sizesget_discrepancy_matrixget_discrepancy_rankget_distribution_parametersget_known_componentget_mixing_weightsget_mixture_dataget_statistic_componentsget_tabulated_distis_equal_knownCompreject_nullHyptwoComp_mixtvalidate_distributionwhich_rank

Dependencies:cubaturefdrtoolIsoMASSorthopolynompolynompracmarbibutilsRcppRdpack

Estimation of unknown elements in admixture models
Estimation of the unknown component weight in an admixture model | The one-sample case | Case of symmetric unknown density | Other cases | The two-sample case | Under the null hypothesis $H_0: F_1 = F_2$ | Under the alternative hypothesis $H_1: F_1 \neq F_2$ | Estimation of the unknown cumulative distribution function | References

Last update: 2026-05-08
Started: 2021-05-28

Clustering of unknown subpopulations in admixture models
Algorithm | Applications | On $\mathbb{R}^+$

Last update: 2025-08-06
Started: 2021-05-28

Hypothesis test in admixture models
The one-sample case only available to symmetric unknown density | The two-sample case | Case of symmetric unknown densities | Case of fully unknown densities | The K-sample case | References

Last update: 2025-08-06
Started: 2021-05-28

Readme and manuals

Help Manual

Help pageTopics
Cluster K populations following admixture modelsadmix_cluster
Estimate the unknown weight in an admixture modeladmix_estim
Define the distribution/parameter(s) of the known componentadmix_model
Hypothesis test for the unknown component(s) in admixture model(s)admix_test
Measurements of heliocentric velocitiesallGalaxies
Probability density function of the unknown componentdecontaminated_density
Detect the type of support of some random variablesdetect_support_type
Determine the type of distribution under considerationdistribution_type
Extractor for members of clustersget_cluster_members
Extractor for cluster sizesget_cluster_sizes
Extractor for discrepancies b/w unknown componentsget_discrepancy_matrix
Extractor for pairwise discrepancy rankingsget_discrepancy_rank
Check the validity of the specified distributionsget_distribution_parameters
Extractor for known component(s) in admixture model(s)get_known_component
Extractor for estimated mixing weightsget_mixing_weights
Extractor for simulated data from two-component mixtureget_mixture_data
Extractor for components involved in test statisticget_statistic_components
Extractor for tabulated distribution in the k-sample testget_tabulated_dist
Equality of known components in two admixture modelsis_equal_knownComp
Dataset of heliocentric velocity for the Milky WaymilkyWay
Dataset of deaths statistics in 11 european countriesmortality_sample
Plot method for objects of class 'admix_model'plot.admix_model
Plot method for object of class 'decontaminated_density'plot.decontaminated_density
Plot the empirical mixture pdfplot.twoComp_mixt
Print method for object of class 'admix_cluster'print.admix_cluster
Print method for object of class 'admix_estim'print.admix_estim
Print method for objects of class 'admix_model'print.admix_model
Print method for object of class 'decontaminated_density'print.decontaminated_density
Print method for objects 'twoComp_mixt'print.twoComp_mixt
Extractor for the test decisionreject_nullHyp
Dataset of Short-term Mortality Fluctuations (STMF) from HMDstmf_small
Summary method for object of class 'admix_cluster'summary.admix_cluster
Summary method for object of class 'admix_estim'summary.admix_estim
Summary method for objects of class 'admix_model'summary.admix_model
Summary method for object of class 'decontaminated_density'summary.decontaminated_density
Summary method for objects 'twoComp_mixt'summary.twoComp_mixt
Simulation of a two-component mixture modeltwoComp_mixt
Check the validity of the specified distribution and parameter(s)validate_distribution
Extractor for the selected rank in the test statisticwhich_rank