WhatIf: Evaluate Counterfactuals
Version 1.5-8

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.

AuthorChristopher Gandrud [aut, cre], Gary King [aut], Heather Stoll [aut], Langche Zeng [aut]
Date of publication2017-03-21 15:20:18 UTC
MaintainerChristopher Gandrud <zelig.zee@gmail.com>
LicenseGPL (>= 3)
Version1.5-8
URL http://gking.harvard.edu/whatif
Package repositoryView on CRAN
InstallationInstall the latest version of this package by entering the following in R:
install.packages("WhatIf")

Getting started

README.md

Popular man pages

peacecf: Counterfactual Replication Data from King and Zeng 2006b
peacef: Factual Replication Data from King and Zeng 2006b
plot.whatif: Plot Cumulative Frequencies of Distances for "whatif" Objects
print.summary.whatif: Print "summary.whatif" Object
print.whatif: Print "whatif" Object
summary.whatif: Summary of "whatif" Object
whatif: Counterfactual evaluation
See all...

All man pages Function index File listing

Man pages

peacecf: Counterfactual Replication Data from King and Zeng 2006b
peacef: Factual Replication Data from King and Zeng 2006b
plot.whatif: Plot Cumulative Frequencies of Distances for "whatif" Objects
print.summary.whatif: Print "summary.whatif" Object
print.whatif: Print "whatif" Object
summary.whatif: Summary of "whatif" Object
whatif: Counterfactual evaluation

Functions

onAttach Source code
peacecf Man page
peacef Man page
plot.whatif Man page Source code
print.summary.whatif Man page Source code
print.whatif Man page Source code
summary.whatif Man page Source code
whatif Man page Source code

Files

tests
tests/testthat.R
tests/testthat
tests/testthat/test-zelig.R
NAMESPACE
demo
demo/00Index
demo/peace.R
NEWS.md
data
data/peacecf.RData
data/peacef.RData
R
R/summary.whatif.R
R/print.whatif.R
R/print.summary.whatif.R
R/plot.whatif.R
R/load.first.R
R/whatif.R
README.md
MD5
DESCRIPTION
man
man/peacef.Rd
man/print.whatif.Rd
man/summary.whatif.Rd
man/peacecf.Rd
man/print.summary.whatif.Rd
man/whatif.Rd
man/plot.whatif.Rd
WhatIf documentation built on May 19, 2017, 10:27 p.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.