rob.ncutrange: Function for identifying the frequency threshold range within...

View source: R/rob.ncutrange.R

rob.ncutrangeR Documentation

Function for identifying the frequency threshold range within which the Boolean formula for the solution does not change.

Description

Function for identifying the frequency threshold range for a truth table within which the Boolean formula for the solution does not change. The function gradually increases and, then, decreases an inital selected threshold by the value specifyied in the step argument and checks whether the solution formula changes for finding the lower and upper ranges for the frequency threshold. The function performs this iteration for the number of times specified in the max.runs argument. If the solution formula does not change given the number of runs specified, it will return an NA, meaning that it could not find a limit to the range.

Usage

rob.ncutrange(data,
    step = 1,
    max.runs = 20,
    outcome,
    conditions,
    incl.cut = 1,
    n.cut = 1,
    include = "",
    ...)

Arguments

data

A data frame containing the calibrated data for the sufficient solution.

step

The value to be gradually added and subtracted from the threshold tested.

max.runs

The maximum number of times the step value gets gradually added and subtracted.

outcome

A character string with the name of the outcome in capital letters. For the negated outcome a tilde "~" should be used. This had the same usage as the outcome argument in the minimize function.

conditions

A vector of character strings containing the names of the conditions.This had the same usage as the conditions argument in the minimize function.

incl.cut

The raw consistency threshold for the truth table rows.

n.cut

The frequency threshold for the truth table rows.

include

A vector of other output values (for example "?" for logical remainders) to include in the minimization. This had the same usage as the include argument in the minimize function.

...

Other options that the minimize function in the QCA package accepts. Check them out using ?minimize.

Author(s)

Ioana-Elena Oana

References

Oana, Ioana-Elena, and Carsten Q. Schneider. 2020. Robustness tests in QCA: A fit-oriented and case-oriented perspective using R. Unpublished Manuscript.

Oana, Ioana-Elena, Carsten Q. Schneider, and Eva Thomann (forthcoming). Qualitative Comparative Analysis (QCA) using R: A Gentle Introduction. Cambridge: Cambridge University Press.

Examples

# Load the calibrated data:
data(PAYF)

# Check frequency ranges:
rob.ncutrange(
  data = PAYF,
  step = 1,
  max.runs = 10,
  outcome  = "HL",
  conditions = c("HE","GG","AH","HI","HW"),
  incl.cut = 0.87,
  n.cut = 2,
  include = "?"
)

SetMethods documentation built on March 31, 2023, 5:41 p.m.