假设我有以下数据框:
mydata <- data.frame(cond1=c(0.9,0.6,0.9,0.5,0.2,0.2,0.9,0.7,0.1,0.1,0.6),
cond2=c(0.7,0.7,0.2,0.9,0.9,0.2,0.2,0.9,0.3,0.4,0.9),
cond3=c(0.8,0.9,1,0.3,0.6,0.2,0.3,0.1,0.9,0.1,1),
outcome=c(1,0.9,0.8,0.5,0.9,0.5,0.3,0.6,0.4,0.3,0.2))
我加载 QCA 库进行模糊定性比较分析:
library(QCA)
然后我构造了真值表:
TT <- truthTable(mydata, outcome = "outcome", incl.cut1 = 0.85,
show.cases = TRUE, sort.by = c("incl", "n"))
没问题,但是当我尝试使用以下代码为复杂解决方案获取布尔最小化时:
SC <- eqmcc(TT,details = T, show.cases = T)
我总是收到错误消息:
Error in `[.data.frame`(data, , outcome) : undefined columns selected
我究竟做错了什么?
谢谢。