Gary King Homepage Previous: Value Up: R Function Reference Next: Usage

Function plot.whatif()

This function generates a cumulative frequency plot of distances, graphically summarizing the distance of your counterfactuals from the data. It takes as its input an object returned by the function whatif, which has class ``whatif''. It is called by the generic function plot. The cumulative frequencies appear on the vertical axis. They are the fraction of rows in the observed data set with either Gower or (squared) Euclidian distances to the counterfactuals less than or equal to the given value on the horizontal axis. Counterfactuals in the convex hull are plotted with a solid line and counterfactuals outside of the convex hull with a dashed line.



Subsections

Gary King 2010-08-12