Routes to make_design() with id "process_tracing_bayes":
make_design("process_tracing_bayes", prior_H = prior_H, ...).
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
)A design object.
Number of cases in the population.
Probability that X = 1.
Shares of the four causal processes: X causes Y, Y regardless, X causes not Y, and not Y regardless.
Prior probability that X caused Y.
Probability of clue 1 if X did and did not cause Y.
Probability of clue 2 if X did and did not cause Y.
Correlation of the two clues if X did and did not cause Y.
Ignored unless left at their defaults.
Ignored. Present for compatibility with DesignLibrary 0.1.
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").
make_design()
process_tracing_designer(prior_H = 0.3, p_E2_H = 0.5)
Run the code above in your browser using DataLab