Description Usage Arguments Details Contributors Author(s) References See Also Examples
View source: R/mintermMatrix.R
This function creates minterm and implicant matrices. It is mainly used for internal and demonstration purposes.
1 | mintermMatrix(noflevels, logical = FALSE)
|
noflevels |
The number of levels for each exogenous factor. |
logical |
Logical, return the matrix in logical values (only bivalent data). |
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.
Dusa, Adrian | : development, programming |
Thiem, Alrik | : development, documentation, testing |
Alrik Thiem (Personal Website; ResearchGate Website)
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.
1 2 3 4 5 6 | # a minterm matrix with three bivalent exogenous factors
noflevels <- rep(2, 3)
mintermMatrix(noflevels)
# with logical values
mintermMatrix(noflevels, logical = TRUE)
|
Please cite the 'QCApro' package as follows:
Thiem, Alrik. 2018. QCApro: Advanced Functionality for Performing and
Evaluating Qualitative Comparative Analysis. R Package Version 1.1-2.
URL: http://www.alrik-thiem.net/software/.
A BibTeX entry can be generated by:
citation(package = "QCApro")
All internal package updates can be browsed by:
news(package = "QCApro")
NOTE: You should work with only either QCApro or QCA within the same R session.
[,1] [,2] [,3]
[1,] 0 0 0
[2,] 0 0 1
[3,] 0 1 0
[4,] 0 1 1
[5,] 1 0 0
[6,] 1 0 1
[7,] 1 1 0
[8,] 1 1 1
[,1] [,2] [,3]
[1,] FALSE FALSE FALSE
[2,] FALSE FALSE TRUE
[3,] FALSE TRUE FALSE
[4,] FALSE TRUE TRUE
[5,] TRUE FALSE FALSE
[6,] TRUE FALSE TRUE
[7,] TRUE TRUE FALSE
[8,] TRUE TRUE TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.