The BIVAR statement computes bivariate kernel density estimates. Table 66.1 summarizes the options available in the BIVAR statement.
Table 66.1: BIVAR Statement Options
Option |
Description |
---|---|
Produces a table for each density estimate |
|
Specifies the bandwidth multiplier |
|
Specifies the lower grid limit |
|
Specifies the upper grid limit |
|
Requests a table of levels for contours of the bivariate density |
|
Specifies the number of grid points associated with each variable |
|
Suppresses output tables |
|
Specifies the name of the output data set |
|
Requests that a table of percentiles be computed |
|
Requests one or more plots |
|
Produces a table for each density estimate containing standard univariate statistics and the bandwidths |
The basic syntax for the BIVAR statement specifies two variables:
BIVAR v1 <(v-options)> v2 <(v-options)> </ options>;
This statement requests a bivariate kernel density estimate for the variables v1
and v2
. The v-options optionally specified in parentheses after a variable name apply only to that variable, and override corresponding global
options specified following a slash (/).
You can specify a list of more than two variables:
BIVAR v1 <(v-options)> v2 <(v-options)> …vN <(v-options)> </ options>;
This statement requests a bivariate kernel density estimate for each distinct pair of variables in the list. For example, if you specify
bivar x y z;
then a bivariate kernel density estimate is computed for each of the variable pairs (x
, y
), (x
, z
), and (y
, z
).
Alternatively, you can specify an explicit list of variable pairs, with each pair enclosed in parentheses:
BIVAR (v1 v2)(v3 v4)…(vN-1 vN)</ options>;
(You can also specify v-options following a variable name appearing in an explicit pair, but they are omitted here for clarity.) This statement requests a bivariate kernel density estimate for each pair of variables. For example, if you specify
bivar (x y) (y z);
then bivariate kernel density estimates are computed for (x
, y
) and (y
, z
).
Note: The VAR statement supported by PROC KDE in SAS 8 and earlier releases is now obsolete. The VAR statement has been replaced by the UNIVAR and the BIVAR statements, which enable you to produce multiple kernel density estimates with a single invocation of the procedure.
You can specify the following options in the BIVAR statement. As noted, some options can be used as v-options.