Package: admix 2.5.2

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.5.2.tar.gz
admix_2.5.2.zip(r-4.7)admix_2.5.2.zip(r-4.6)admix_2.5.2.zip(r-4.5)
admix_2.5.2.tgz(r-4.6-x86_64)admix_2.5.2.tgz(r-4.6-arm64)admix_2.5.2.tgz(r-4.5-x86_64)admix_2.5.2.tgz(r-4.5-arm64)
admix_2.5.2.tar.gz(r-4.6-arm64)admix_2.5.2.tar.gz(r-4.6-x86_64)admix_2.5.2.tar.gz(r-4.5-arm64)admix_2.5.2.tar.gz(r-4.5-x86_64)
admix_2.5.2.tgz(r-4.5-emscripten)
admix.pdf |admix.html
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.03 score 3 stars 8 scripts 784 downloads 2 mentions 20 exports 29 dependencies

Last updated from:358ad6d32f. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK163
linux-devel-x86_64OK152
source / vignettesOK225
linux-release-arm64OK164
linux-release-x86_64OK159
macos-release-arm64OK188
macos-release-x86_64OK309
macos-oldrel-arm64OK195
macos-oldrel-x86_64OK447
windows-develOK205
windows-releaseOK191
windows-oldrelOK126
wasm-releaseOK132

Exports:admix_clusteradmix_estimadmix_modeladmix_testdecontaminated_cdfdecontaminated_densitydetect_support_typeget_cluster_membersget_cluster_sizesget_discrepancy_matrixget_discrepancy_rankget_known_componentget_mixing_weightsget_mixture_dataget_statistic_componentsget_tabulated_distis_equal_knownCompreject_nullHyptwoComp_mixtwhich_rank

Dependencies:clicpp11cubatureEnvStatsfarverfdrtoolggplot2gluegtableIsoisobandlabelinglifecycleMASSnortestorthopolynompolynompracmaR6rbibutilsRColorBrewerRcppRdpackrlangS7scalesvctrsviridisLitewithr

Clustering of unknown subpopulations in admixture models

Rendered fromadmixture-clustering.Rmdusingknitr::rmarkdownon Apr 08 2026.

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

Estimation of unknown elements in admixture models

Rendered fromadmixture-weight-estimation.Rmdusingknitr::rmarkdownon Apr 08 2026.

Last update: 2025-10-05
Started: 2021-05-28

Hypothesis test in admixture models

Rendered fromtest-hypothesis.Rmdusingknitr::rmarkdownon Apr 08 2026.

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
Equality test for the unknown components in admixture modelsadmix_test
Measurements of heliocentric velocitiesallGalaxies
Probability density function of the unknown componentdecontaminated_density
Detect the type of support of some random variablesdetect_support_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
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
Extractor for the selected rank in the test statisticwhich_rank