# NOT RUN {
# Import your data. For example:
data(Schneider)
# Get the parsimonious solution:
sol_yp <- eqmcc(Schneider, outcome = "EXPORT",
conditions = c("EMP","BARGAIN","UNI","OCCUP","STOCK", "MA"),
incl.cut1 = .9,
include = "?",
details = TRUE, show.cases = TRUE)
# Get the intermediate solution:
sol_yi <- eqmcc(Schneider, outcome = "EXPORT",
conditions = c("EMP","BARGAIN","UNI","OCCUP","STOCK", "MA"),
incl.cut1 = .9,
include = "?",
details = TRUE, show.cases = TRUE, dir.exp = c(0,0,0,0,0,0))
# Plot the prime implicants of the parsimonious solution:
pimplot(data = Schneider, results = sol_yp, outcome = "EXPORT")
# Plot the prime implicants of the first intermediate solution:
pimplot(data = Schneider, results = sol_yi, outcome = "EXPORT", intermed=TRUE, sol = 1)
# Plot all truth table rows with a consistency higher than 0.9:
pimplot(data=Schneider, results = sol_yi, incl.tt=0.9, outcome = "EXPORT", intermed=TRUE, sol = 1)
# Plot truth table rows "60" and "61":
pimplot(data=Schneider, results = sol_yi, ttrows =c("60","61"),
outcome = "EXPORT", intermed=TRUE, sol = 1)
# For plotting results of necessity analyses using superSubset,
# the first stept is to obtain an "sS" object:
SUPSUB <- superSubset(Schneider, outcome="EXPORT",
conditions = c("EMP","BARGAIN","UNI","OCCUP","STOCK", "MA"),
relation = "necessity", incl.cut = 0.8)
SUPSUB
# This can be imputed as result and necessity should be set to \code{TRUE}:
pimplot(data = Schneider, results = SUPSUB, outcome = "EXPORT", necessity = TRUE)
# }
Run the code above in your browser using DataLab