Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mintermMatrix

Create Minterm Matrices


Description

This function creates minterm and implicant matrices. It is mainly used for internal and demonstration purposes.

Usage

mintermMatrix(noflevels, logical = FALSE)

Arguments

noflevels

The number of levels for each exogenous factor.

logical

Logical, return the matrix in logical values (only bivalent data).

Details

Minterm matrices contain all unique and complete conjunctions that can be formed from all levels of k factors (Dusa and Thiem 2015). The total number of minterms d is given by d = ∏_{j = 1}^{k}{p_{j}}, where p_{j} is the number of levels for exogenous factor j and k is the total number of exogenous factors. A minterm matrix is an essential part of a truth table.

Contributors

Dusa, Adrian : development, programming
Thiem, Alrik : development, documentation, testing

Author(s)

References

Dusa, Adrian, and Alrik Thiem. 2015. “Enhancing the Minimization of Boolean and Multivalue Output Functions with eQMC.” Journal of Mathematical Sociology 39 (2):92-108. DOI: 10.1080/0022250X.2014.897949.

See Also

Examples

# a minterm matrix with three bivalent exogenous factors
noflevels <- rep(2, 3)
mintermMatrix(noflevels)

# with logical values
mintermMatrix(noflevels, logical = TRUE)

QCApro

Advanced Functionality for Performing and Evaluating Qualitative Comparative Analysis

v1.1-2
GPL-3
Authors
Alrik Thiem [aut, cre, cph], Michael Baumgartner [ctb], Adrian Dusa [ctb], Reto Spoehel [ctb]
Initial release
2018-01-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.