# csQCA using Krook (2010)
#-------------------------
data(Krook)
Krook
# print the truth table
truthTable(Krook, outcome = "WNP")
# print the complete truth table, show cases, sort by inclusions
# scores and then number of cases
truthTable(Krook, outcome = "WNP", complete = TRUE, show.cases = TRUE,
sort.by = c("incl", "n"))
# code configurations with 1 case as remainders
KrookTT <- truthTable(Krook, outcome = "WNP", n.cut = 2, show.cases = TRUE)
KrookTT
# print the cases that were assigned to remainders based on n.cut
KrookTT$excluded
# fsQCA using Emmenegger (2011)
#------------------------------
data(Emme)
Emme
# code non-remainder configurations with inclusion scores between 0.5
# and 0.9 as contradictions
EmmeTT <- truthTable(Emme, outcome = "JSR", incl.cut1 = 0.9, incl.cut0 = 0.5)
EmmeTT
# truth table based on negated outcome set
EmmeTT <- truthTable(Emme, outcome = "JSR", neg.out = TRUE, incl.cut1 = 0.9,
incl.cut0 = 0.5)
EmmeTT
# get the raw truth table as a component of the truth table object EmmeTT
EmmeTT$tt
# mvQCA using Hartmann and Kemmerzell (2010)
#-------------------------------------------
data(HarKem)
HarKem
# code non-remainder configurations with inclusion scores below 1 but above
# 0.4 as contradictions
HarKemTT <- truthTable(HarKem, outcome = "PB",
conditions = c("C","F","T","V"), incl.cut0 = 0.4)
HarKemTT
# list the number of condition levels
HarKemTT$noflevels
# which configurations have more than 2 cases
which(HarKemTT$tt$n > 2)
# tQCA using Ragin and Strand (2008)
#-----------------------------------
data(RagStr)
RagStr
# tQCA truth table with "don't care" values
truthTable(RagStr, outcome = "REC")
Run the code above in your browser using DataLab