Learn R Programming

WhatIf (version 1.5-10)

Software for Evaluating Counterfactuals

Description

Inferences about counterfactuals are essential for prediction, answering what if questions, and estimating causal effects. However, when the counterfactuals posed are too far from the data at hand, conclusions drawn from well-specified statistical analyses become based largely on speculation hidden in convenient modeling assumptions that few would be willing to defend. Unfortunately, standard statistical approaches assume the veracity of the model rather than revealing the degree of model-dependence, which makes this problem hard to detect. WhatIf offers easy-to-apply methods to evaluate counterfactuals that do not require sensitivity testing over specified classes of models. If an analysis fails the tests offered here, then we know that substantive inferences will be sensitive to at least some modeling choices that are not based on empirical evidence, no matter what method of inference one chooses to use. WhatIf implements the methods for evaluating counterfactuals discussed in Gary King and Langche Zeng, 2006, "The Dangers of Extreme Counterfactuals," Political Analysis 14 (2) ; and Gary King and Langche Zeng, 2007, "When Can History Be Our Guide? The Pitfalls of Counterfactual Inference," International Studies Quarterly 51 (March) .

Copy Link

Version

Install

install.packages('WhatIf')

Monthly Downloads

234

Version

1.5-10

License

GPL (>= 3)

Maintainer

Last Published

November 14th, 2020

Functions in WhatIf (1.5-10)

peacecf

Counterfactual Replication Data from King and Zeng 2006b
plot.whatif

Plot Cumulative Frequencies of Distances for "whatif" Objects
summary.whatif

Summary of "whatif" Object
print.whatif

Print "whatif" Object
peacef

Factual Replication Data from King and Zeng 2006b
print.summary.whatif

Print "summary.whatif" Object
whatif

Counterfactual Evaluation