print.whatif {WhatIf} | R Documentation |
Prints the information produced by the function whatif
,
an object of class "whatif", to the screen.
## S3 method for class 'whatif': print(x, print.gowers = FALSE, print.freq = FALSE, ...)
x |
An object of class "whatif", the output of
the function whatif . |
print.gowers |
A Boolean; should the matrix of pairwise Gower distances between each counterfactual and data point be printed to the screen? Default is FALSE. |
print.freq |
A Boolean; should the matrix of cumulative frequencies of Gower distances for each counterfactual be printed to the screen? Default is FALSE. |
... |
Further arguments passed to and from other methods. |
A printout to the screen of the information contained in the
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. 2006a. "The Dangers of Extreme Counterfactuals." Political Analysis, forthcoming. Preprint available from http://gking.harvard.edu.
King, Gary and Langche Zeng. 2006b. "When Can History Be Our Guide? The Pitfalls of Counterfactual Inference." International Studies Quarterly, forthcoming. Preprint available from http://gking.harvard.edu.
whatif
,
plot.whatif
,
summary.whatif
,
print.summary.whatif
## 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) ## Print output object print(my.result)