An object of class ``whatif'', a list containing the following six or
seven elements:
- call
- The original call to whatif.
- inputs
- A list with two elements, data and cfact. Only
present if return.inputs was set equal to TRUE in the call
to whatif. The first element is the processed observed
covariate data matrix on which all whatif computations were
performed. The second element is the processed counterfactual data
matrix.
- in.hull
- A logical vector of length
, where
is
the number of counterfactuals. Each element of the vector is TRUE
if the corresponding counterfactual is in the convex hull and FALSE
otherwise.
- dist
- An
numeric matrix, where
is the number of
counterfactuals and
is the number of data points (units). Only
present if return.distance was set equal to TRUE
in the call to whatif. The
th entry of the matrix
contains the distance between the
th counterfactual and the
th
data point.
- geom.var
- A scalar. The geometric variability of the observed
covariate data.
- sum.stat
- A numeric vector of length
, where
is the
number of counterfactuals. The
th element contains the summary
statistic for the corresponding counterfactual. This summary
statistic is the fraction of data points with distances to the
counterfactual less than nearby*gv, which by
default is the geometric variability of the covariates.
- cum.freq
- A numeric matrix. By default, the matrix has
dimension
, where
is the number of counterfactuals;
however, if you supplied your own frequencies via the argument
freq, the matrix has dimension
, where
is the
length of freq. Each row of the matrix contains the
cumulative frequency distribution for the corresponding
counterfactual calculated using either the distance measure-specific
default set of distance values or the set that you supplied (see the
discussion under the argument freq). Hence, the
th
entry of the matrix is the fraction of data points with
distances to the
th counterfactual less than or equal to the
value represented by the
th column. The column names contain these
values.
Gary King
2010-08-12