A function that extracts cases typical with regards to sufficiency from an object of class "qca".
cases.suf.typ(results, outcome, neg.out=FALSE, sol = 1)
An object of class "qca".
A character string with the name of the outcome in capital letters. When performing pimdata of the sufficient solution for the negated outcome one must only use the minimize()
result from the sufficiency analysis of the negated outcome in the argument results
. Changing the name in the argument outcome
or using a tilde is not necessary.
Logical. Should the negated outcome be used?
A vector where the first number indicates the number of the conservative or parsimonious solution according to the order in the "qca" object. For more complicated structures of model ambiguity, the intermediate solution can also be specified by using a character string of the form "c1p3i2" where c = conservative solution, p = parsimonious solution and i = intermediate solution.
Schneider, C. Q., Rohlfing, I. 2013. Combining QCA and Process Tracing in Set-Theoretic Multi-Method Research. Sociological Methods and Research 42(4): 559-97
# NOT RUN {
# Import your data. For example:
data(SCHF)
# Get the parsimonious solution:
sol_yp <- minimize(SCHF, outcome = "EXPORT",
conditions = c("EMP","BARGAIN","UNI","OCCUP","STOCK", "MA"),
incl.cut = .9,
include = "?",
details = TRUE, show.cases = TRUE)
# Get the intermediate solution:
sol_yi <- minimize(SCHF, outcome = "EXPORT",
conditions = c("EMP","BARGAIN","UNI","OCCUP","STOCK", "MA"),
incl.cut = .9,
include = "?",
details = TRUE, show.cases = TRUE, dir.exp = c(0,0,0,0,0,0))
# Return typical cases for sufficiency for the parsimonious solution:
cases.suf.typ(results = sol_yp, outcome = "EXPORT")
# Return typical cases for sufficiency for the intermediate solution:
cases.suf.typ(results = sol_yi, outcome = "EXPORT")
# Get the parsimonious solution for the absence of the outcome:
sol_nyp <- minimize(SCHF, outcome = "EXPORT", neg.out = TRUE,
conditions = c("EMP","BARGAIN","UNI","OCCUP","STOCK", "MA"),
incl.cut = .9,
include = "?",
details = TRUE, show.cases = TRUE)
# Return typical cases for sufficiency for the second parsimonious solution
# for the absence of the outcome:
cases.suf.typ(results = sol_nyp, outcome = "EXPORT", neg.out = TRUE, sol = 2)
# }
Run the code above in your browser using DataLab