| smmr | R Documentation |
A function that selects best available cases for single case studies and best pairs of matching cases for comparative case studies.
smmr(results, outcome, sol = 1, match = NULL,
cases = NULL, max_pairs = 5, term = 1, ...)
results |
An object of class "qca". |
outcome |
A character string with the name of the outcome. If the negated outcome is analyzed, one can also write for example outcome = "~Y", however this is unnecessary as the values in the outcome will be taken from the appropriate minimized solution. |
sol |
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. |
match |
Logical. Should comparative MMR be used? |
cases |
A numerical vector indicating the type of cases to be returned.
|
max_pairs |
Maximum number of pairs to extract. |
term |
A numeric vector where the first number indicates the number of the term according to the order in the "qca" object. |
... |
Deprecated arguments (neg.out, use.tilde) |
Ioana-Elena Oana
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
minimize
# 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 typical cases for each focal conjunct in the third term of the parsimonious solution:
smmr(results = sol_yp, outcome = "EXPORT", match=FALSE, cases=2, term = 3)
# Get matching typical-typical cases for the second term of the parsimonious solution:
smmr(results = sol_yp, outcome = "EXPORT", match=TRUE, cases=1, term = 2)
# Get matching typical-DCN cases:
smmr(results = sol_yp, outcome = "EXPORT", match=TRUE, cases=3)