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 29 Mar. 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
02/2702/2803/0103/0203/0303/0403/0503/0603/0703/0803/1003/1103/1203/1303/1403/1503/1603/1703/1803/1903/2003/2103/2203/2303/2403/2503/2603/2703/28Downloads for WhatIf02468101214161820TrendBars

Today's Hot Picks in Authors and Packages

landmix  
Landmark Prediction for Mixture Data
Non-parametric prediction of survival outcomes for mixture data that incorporates covariates and a l ...
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  
gglgbtq  
Show Pride on 'ggplot2' Plots
Provides multiple palettes based on pride flags with tailored themes. ...
Download / Learn more Package Citations See dependency  

23,842

R Packages

207,311

Dependencies

64,420

Author Associations

23,781

Publication Badges

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