| summary.whatif {WhatIf} | R Documentation | 
Summary of "whatif" Object
Description
Summarizes the information produced by the function whatif. 
The summary generated is returned as an output object and also printed 
to the screen.
Usage
## S3 method for class 'whatif'
summary(object, ...)
Arguments
| object | An object of class "whatif", the output of 
the function  | 
| ... | Further arguments passed to and from other methods. | 
Value
An object of class "summary.whatif", a list containing the following five elements:
| call | The original call to  | 
| m | A scalar. The total number of counterfactuals evaluated. | 
| m.inhull | A scalar. The number of counterfactuals evaluated that are in the convex hull of the observed covariate data. | 
| mean.near | A scalar. The average percentage of data nearby each counterfactual, where the average is taken over all counterfactuals. | 
| sum.df | A data frame with three columns and  | 
This object is printed to the screen.
Author(s)
Stoll, Heather hstoll@polsci.ucsb.edu, King, Gary king@harvard.edu and Zeng, Langche zeng@ucsd.edu
References
King, Gary and Langche Zeng. 2006. "The Dangers of Extreme Counterfactuals." Political Analysis 14 (2). Available from https://gking.harvard.edu.
King, Gary and Langche Zeng. 2007. "When Can History Be Our Guide? The Pitfalls of Counterfactual Inference." International Studies Quarterly 51 (March). Available from https://gking.harvard.edu.
See Also
whatif,
plot.whatif,
print.whatif,
print.summary.whatif
Examples
##  Create example data sets and counterfactuals
my.cfact <- matrix(rnorm(3*5), ncol = 5)
my.data <- matrix(rnorm(100*5), ncol = 5)
##  Evaluate counterfactuals
my.result <- whatif(data = my.data, cfact = my.cfact, mc.cores = 1)
##  Print summary
summary(my.result)