Learn R Programming

DesignLibrary (version 2.0.0)

process_tracing_designer: Create a process tracing design with two clues

Description

Routes to make_design() with id "process_tracing_bayes": make_design("process_tracing_bayes", prior_H = prior_H, ...).

Usage

process_tracing_designer(
  N = 100,
  prob_X = 0.5,
  process_proportions = c(0.25, 0.25, 0.25, 0.25),
  prior_H = 0.5,
  p_E1_H = 0.8,
  p_E1_not_H = 0.2,
  p_E2_H = 0.3,
  p_E2_not_H = 0,
  cor_E1E2_H = 0,
  cor_E1E2_not_H = 0,
  label_E1 = "Straw in the Wind",
  label_E2 = "Smoking Gun",
  args_to_fix = NULL
)

Value

A design object.

Arguments

N

Number of cases in the population.

prob_X

Probability that X = 1.

process_proportions

Shares of the four causal processes: X causes Y, Y regardless, X causes not Y, and not Y regardless.

prior_H

Prior probability that X caused Y.

p_E1_H, p_E1_not_H

Probability of clue 1 if X did and did not cause Y.

p_E2_H, p_E2_not_H

Probability of clue 2 if X did and did not cause Y.

cor_E1E2_H, cor_E1E2_not_H

Correlation of the two clues if X did and did not cause Y.

label_E1, label_E2

Ignored unless left at their defaults.

args_to_fix

Ignored. Present for compatibility with DesignLibrary 0.1.

Details

One case with X = 1 and Y = 1 is selected, two clues are observed, and the posterior that X caused Y is updated by Bayes' rule. Argument names match DesignLibrary 0.1's process_tracing_designer. The estimator labels are fixed at "Straw in the Wind" and "Smoking Gun", so label_E1 and label_E2 other than those warn and are ignored. For the book's CausalQueries version, see make_design("process_tracing").

See Also

make_design()

Examples

Run this code
process_tracing_designer(prior_H = 0.3, p_E2_H = 0.5)

Run the code above in your browser using DataLab