Description Usage Arguments Value Author(s) References See Also Examples
View source: R/print.summary.whatif.R
Prints the information generated from the whatif
output object
by a call to summary
, which is stored in an object of class
"summary.whatif".
1 2 |
x |
An object of class "summary.whatif", the output of
the function |
... |
Further arguments passed to and from other methods. |
A printout to the screen of the whatif
information summarized
in the summary.whatif
output object.
Stoll, Heather hstoll@polsci.ucsb.edu, King, Gary king@harvard.edu and Zeng, Langche zeng@ucsd.edu
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.
whatif
,
plot.whatif
,
summary.whatif
,
print.whatif
1 2 3 4 5 6 7 8 9 10 | ## 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 output object
my.result.sum <- summary(my.result)
print(my.result.sum)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.