# suffnec: Produces a sufficiency and necessity matrix In QCA3: Yet Another Package for Qualitative Comparative Analysis

## Description

creates a matrix of the sufficiency and necessity scores for a crisp set or fuzzy set data frame.

## Usage

 ```1 2 3 4``` ```suffnec(x, use = c("complete", "pairwise")) ## S3 method for class 'suffnec' print(x, digits = 3, ...) ```

## Arguments

 `x` For coincide, x is a dataframe of crip set or fuzzy set data, which ranges from 0 to 1. `use` The method of handling missing data. "complete" means listwise deletion and "pairwise" means pairwise deletion. `digits` a non-null value for 'digits' specifies the minimum number of significant digits to be printed in values. `...` arguments passed to default method of print.

## Details

In the terminology of set theory, if X is the sufficient condition of Y, then the score of X should be consistently less or equal than that of Y. Similarly, if X is the necessary condition of Y, then the sore of X should be consistently greater or equal than that of Y. The necessary score measures such consitency. The formulas can be found in Ragin(2006:297).

For crip set, sufficient score measures proportation of Y=1 given that X=1. The neccessary score measures the proportation of X=1 given that Y=1.

## Value

A list of two matrixs of consistency score.

 `suff` Sufficiency Scores Matrix,measuring the consistency score of 'X is sufficient condition of Y'. `nec` Necessity Scores Matrix, measuring the consistency score of 'X is necessary condition of Y'.

Ronggui HUANG

## References

Ragin, Charles C. 2006. "Set Relations in Social Research:Evaluating Their Consistency and Coverage." Political Analysis 14 (3) : 291-310

`coincid`
 `1` ```suffnec(CoD[,c('cod',"econdev","ethlihom","nocom")]) ```