Package: fipp 1.0.0

Jan Greve

fipp: Induced Priors in Bayesian Mixture Models

Computes implicitly induced quantities from prior/hyperparameter specifications of three Mixtures of Finite Mixtures models: Dirichlet Process Mixtures (DPMs; Escobar and West (1995) <doi:10.1080/01621459.1995.10476550>), Static Mixtures of Finite Mixtures (Static MFMs; Miller and Harrison (2018) <doi:10.1080/01621459.2016.1255636>), and Dynamic Mixtures of Finite Mixtures (Dynamic MFMs; Frühwirth-Schnatter, Malsiner-Walli and Grün (2020) <arxiv:2005.09918>). For methodological details, please refer to Greve, Grün, Malsiner-Walli and Frühwirth-Schnatter (2020) <arxiv:2012.12337>) as well as the package vignette.

Authors:Jan Greve [aut, cre], Bettina Grün [ctb], Gertraud Malsiner-Walli [ctb], Sylvia Frühwirth-Schnatter [ctb]

fipp_1.0.0.tar.gz
fipp_1.0.0.tar.gz(r-4.5-noble)fipp_1.0.0.tar.gz(r-4.4-noble)
fipp_1.0.0.tgz(r-4.4-emscripten)fipp_1.0.0.tgz(r-4.3-emscripten)
fipp.pdf |fipp.html
fipp/json (API)
NEWS

# Install 'fipp' in R:
install.packages('fipp', repos = 'https://cloud.r-project.org')
Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

cpp

2.70 score 159 downloads 3 exports 3 dependencies

Last updated 4 years agofrom:9ffda952f8. Checks:1 OK, 2 NOTE. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKApr 02 2025
R-4.5-linux-x86_64NOTEApr 02 2025
R-4.4-linux-x86_64NOTEApr 02 2025

Exports:dbnbfippnClusters

Dependencies:matrixStatsRcppRcppArmadillo

fipp Crash Course

Rendered fromfippCrashCourse.Rmdusingknitr::rmarkdownon Apr 02 2025.

Last update: 2021-02-11
Started: 2021-02-11

Citation

To cite package ‘fipp’ in publications use:

Greve J (2021). fipp: Induced Priors in Bayesian Mixture Models. R package version 1.0.0, https://CRAN.R-project.org/package=fipp.

Corresponding BibTeX entry:

  @Manual{,
    title = {fipp: Induced Priors in Bayesian Mixture Models},
    author = {Jan Greve},
    year = {2021},
    note = {R package version 1.0.0},
    url = {https://CRAN.R-project.org/package=fipp},
  }

Readme and manuals

fipp

The goal of fipp is to provide tools to carry out sanity checks on mixture models when used for Model-Based Clustering.

Specifically, it deals with characterizing implicit quantities obtained from prior distributions of either of the following three models: Dirichlet Process Mixtures (DPM), Static Mixture of Finite Mixtures (Static MFM) and Dynamic Mixture of Finite Mixtures (Dynamic MFM).

Installation

You can install the released version of fipp from CRAN with:

install.packages("fipp")

Example: the number of filled mixture components (in other words data clusters)

One of the functions in the package allows the user to obtain the number of filled mixture components. Note that it shouldn’t be confused with the number of mixture components. The former quantity is equal or less than the latter where equality holds when at least one data point is associated to any of the mixture components in the model. For details, please refer to the vignette provided in the next section.

Here, we demonstrate how one can obtain the prior distribution of filled mixture components for the DPM under a specific setting (the concentration parameter (\alpha = 1) and when the sample size (N = 100)).

library(fipp)
## DPM w/ alpha = 1, N = 100, evaluate up to 30
pmfDPM <- nClusters(Kplus = 1:30, type = "DPM", alpha = 1, N = 100)
barplot(pmfDPM(),
        main = expression("DPM (" * alpha == 1 * ") with N = 100"),
        xlab = "number of filled components", ylab = "probability")

Details

For more detailed description regarding the functionality of the package, please refer to the vignette below:

fipp Crash Course