Other packages > Find by keyword >

WhatIf  

Software for Evaluating Counterfactuals
View on CRAN: Click here


Download and install WhatIf package within the R console
Install from CRAN:
install.packages("WhatIf")

Install from Github:
library("remotes")
install_github("cran/WhatIf")

Install by package version:
library("remotes")
install_version("WhatIf", "1.5-10")



Attach the package and use:
library("WhatIf")
Maintained by
Soubhik Barari
[Scholar Profile | Author Map]
First Published: 2005-11-02
Latest Update: 2020-11-14
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) <doi:10.1093/pan/mpj004>; and Gary King and Langche Zeng, 2007, "When Can History Be Our Guide? The Pitfalls of Counterfactual Inference," International Studies Quarterly 51 (March) <doi:10.1111/j.1468-2478.2007.00445.x>.
How to cite:
Soubhik Barari (2005). WhatIf: Software for Evaluating Counterfactuals. R package version 1.5-10, https://cran.r-project.org/web/packages/WhatIf. Accessed 07 May. 2025.
Previous versions and publish date:
1.3-4-3 (2005-11-02 22:38), 1.4-6 (2006-08-19 09:01), 1.5-4 (2007-10-14 11:47), 1.5-5 (2009-03-08 16:10), 1.5-6 (2014-01-08 23:38), 1.5-8 (2017-03-21 16:20), 1.5-9 (2017-07-25 13:36)
Other packages that cited WhatIf R package
View WhatIf citation profile
Other R packages that WhatIf depends, imports, suggests or enhances
Complete documentation for WhatIf
Functions, R codes and Examples using the WhatIf R package
Some associated functions: peacecf . peacef . plot.whatif . print.summary.whatif . print.whatif . summary.whatif . whatif . 
Some associated R codes: load.first.R . plot.whatif.R . print.summary.whatif.R . print.whatif.R . summary.whatif.R . whatif.R .  Full WhatIf package functions and examples
Downloads during the last 30 days
04/0704/0804/0904/1004/1104/1204/1304/1404/1504/1604/1704/1804/1904/2004/2104/2204/2304/2404/2504/2604/2704/2804/2904/3005/0105/0205/0305/0405/0505/06Downloads for WhatIf05101520253035TrendBars

Today's Hot Picks in Authors and Packages

humanize  
Create Values for Human Consumption
An almost direct port of the 'python' 'humanize' package . Thi ...
Download / Learn more Package Citations See dependency  
quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
funLBM  
Model-Based Co-Clustering of Functional Data
The funLBM algorithm allows to simultaneously cluster the rows and the columns of a data matrix wher ...
Download / Learn more Package Citations See dependency  
MLDS  
Maximum Likelihood Difference Scaling
Difference scaling is a method for scaling perceived supra-threshold differences. The package cont ...
Download / Learn more Package Citations See dependency  
aroma.affymetrix  
Analysis of Large Affymetrix Microarray Data Sets
A cross-platform R framework that facilitates processing of any number of Affymetrix microarray samp ...
Download / Learn more Package Citations See dependency  

24,205

R Packages

207,311

Dependencies

65,312

Author Associations

24,206

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA