The makeFuzzy function fuzzifies crisp-set data to a customizable degree.
makeFuzzy(x, fuzzvalues = c(0,0.05,0.1),...)
Arguments
x: Data frame, matrix, or configTable featuring crisp-set (binary) factors with values 1 and 0 only.
fuzzvalues: Numeric vector of values from the interval [0,1].
...: Additional arguments are passed to configTable.
Details
In combination with allCombs, full.ct and selectCases, makeFuzzy is useful for simulating fuzzy-set data, which are needed for inverse search trials benchmarking the output of cna. makeFuzzy transforms a data frame or configTablex consisting of crisp-set (binary) factors into a fuzzy-set configTable by adding values selected at random from the argument fuzzvalues to the 0's and subtracting them from the 1's in x. fuzzvalues is a numeric vector of values from the interval [0,1].
selectCases can be used before and selectCases1 after the fuzzification to select those configurations that are compatible with a given data generating causal structure (see examples below).