mv_truthTable: Construct a truthTable for mvQCA

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Construct a truthTable for mvQCA. Both deterministic and probabilistic methods of determining configurations of positive, negative and contraditory outcome are implemented.

Usage

1
2
3
4
mv_truthTable(mydata, outcome, conditions, method = c("deterministic", 
    "probabilistic"), weight = NULL, complete=FALSE, show.cases = TRUE, cases = NULL, 
    cutoff1 = 1, cutoff0 = 1, benchmark = 0.65, conf.level = 0.95, 
    missing = c("missing", "dontcare", "positive", "negative"))

Arguments

mydata

data frame of the raw data.

outcome

character, the name of the outcome variable in mydata.

conditions

character vector, the name of the conditions from mydata.

method

character, specifying the method of determining the outcome of a configuration.

weight

character, name of a variable specifying the weights.

complete

logical, when it is TRUE the result includes configurations without empirical cases.

show.cases

logical, when TRUE the result shows case names.

cases

character, variable specifying the case names. When it is NUll, then use row names of mydata as case names.

cutoff1

length one numeric vector.

cutoff0

length one numeric vector.

benchmark

Benchmark for statistical test. Must equal or greater than 0.5.

conf.level

confident level of statistical test.

missing

method to handle missing data.

Details

The value of all the conditions should start from 0. For example, for mvQCA with 3 levels,it should be 0,1 or 2. Value -9 in conditions means "don't care" (though "don't care" in outcome is denoted by "-9").

There is a sort method method for the truthTable object.

Refer to cs_truthTable for for more details.

Value

An object of class "mv_truthTable" and "truthTable".

Author(s)

Ronggui HUANG

References

Ragin, Charles. 2000. Fuzzy-Set Social Science. Pp109-116. University Of Chicago Press.

See Also

fs_truthTable and reduce

Examples

1
2
3
4
5
6
7
8
## truthTable for mvQCA.
mv_truthTable(Lipset_mv,"SURVIVAL", c("GNPCAP", "URBANIZA", "LITERACY",
              "INDLAB"),case="CASEID")

mvt <- mv_truthTable(Lipset_mv,"SURVIVAL", c("GNPCAP", "URBANIZA", "LITERACY",
              "INDLAB"),case="CASEID")

sort(mvt)

QCA3 documentation built on May 2, 2019, 4:49 p.m.