Learn R Programming

SetMethods (version 2.4)

theory.intersections: Boolean expressions of the various intersections between theory and empirics.

Description

Function that returns the Boolean expressions of the various intersections between theory and empirics.

Usage

theory.intersections(theory, empirics, sol = 1, use.tilde = TRUE)

Arguments

theory

A character string specifying the theory. Unions of conditions are performed with a "+", while intersections are performed with a "*". If use.tilde is set to TRUE, conditions should be capitalized and negated conditions should be inserted with a "~". If use.tilde is set to FALSE, negation can be denoted with lowercase letters, but the output will always transform negation to a tilde.

empirics

An object of class 'qca'. When performing analyses for the negated outcome, just use the results from the minimize() function for the negation of the outcome.

sol

A vector where the first number indicates the number of the conservative or parsimonious solution according to the order in the "qca" object. For more complicated structures of model ambiguity, the intermediate solution can also be specified by using a character string of the form "c1p3i2" where c = conservative solution, p = parsimonious solution and i = intermediate solution.

use.tilde

Logical. If the theory or the solution formula do not use tilde for negation, set use.tilde to FALSE to transform negation with a tilde.

Value

It returns a list of the Boolean intersections between theory and empirical findings.

See Also

minimize

Examples

Run this code
# NOT RUN {
# Import your data. For example:

data(SCHF)

# Get the intermediate solution:

sol_yi <- minimize(SCHF, outcome = "EXPORT",
                conditions = c("EMP","BARGAIN","UNI","OCCUP","STOCK", "MA"),
                incl.cut = .9, 
                include = "?", 					   
                details = TRUE, show.cases = TRUE, dir.exp = c(0,0,0,0,0,0))


# Specify the theory. Let's assume the theory says that the 
# absence of EMP and the presence of MA is sufficient for EXPORT:

t<-"~EMP*MA"

# Get the Boolean intersections between the theory and the second intermediate solution:

theory.intersections(theory = t, empirics = sol_yi, sol = 2)
# }

Run the code above in your browser using DataLab