type
is "->" or "<-".
If type is "<->" it computes an equivalence score of formula1 and formula2
via the formula sum(min(X,Y))/(sum(max(X,Y))
consistency(formula1, type = "->", formula2, data)formula1, type and formula2
If formula is a function, it must take a data.frame and return
a vector.
If formula is a string or list of strings, the following conventions hold:
Set names must be capitalized in the formula and the data; if they are
lowercase, they are interpreted as the negation of the set.
If formula is a string, logical 'or' is expressed as a '+',
and logical 'and' as a '*'.
If formula is a list of strings, the strings are assumed to be
the dosjuncts and are concatenated with '+'.
The formula must be in disjunctive normal form, i.e. it must be a disjunction of
conjunctions of elementary or negated elementary sets. Example:
A*b*C + a*B
require(QCA)
data(d.urban)
consistency("MLC + FRB", "->", "CP", d.urban)
Run the code above in your browser using DataLab