You can create two output data sets with the HISTOGRAM statement: the OUTFIT= data set and the OUTHISTOGRAM= data set. These data sets are described in the following sections.
The OUTFIT= data set contains the parameters of fitted density curves, information about chi-square and EDF goodness-of-fit tests, specification limit information, and capability indices based on the fitted distribution. Since you can specify multiple HISTOGRAM statements with the CAPABILITY procedure, you can create several OUTFIT= data sets. For each variable plotted with the HISTOGRAM statement, the OUTFIT= data set contains one observation for each fitted distribution requested in the HISTOGRAM statement. If you use a BY statement, the OUTFIT= data set contains several observations for each BY group (one observation for each variable and fitted density combination). ID variables are not saved in the OUTFIT= data set.
The OUTFIT= data set contains the variables listed in Table 5.24. By default, an OUTFIT= data set contains _MIDPT1_
and _MIDPTN_
variables, whose values identify histogram intervals by their midpoints. When the ENDPOINTS= or NENDPOINTS option is specified, intervals are identified by endpoint values instead. If the RTINCLUDE option is specified, the variables _MAXPT1_
and _MAXPTN_
contain upper endpoint values. Otherwise, the variables _MINPT1_
and _MINPTN_
contain lower endpoint values.
Table 5.24: Variables in the OUTFIT= Data Set
Variable |
Description |
---|---|
|
Anderson-Darling EDF goodness-of-fit statistic |
|
p-value for Anderson-Darling EDF goodness-of-fit test |
|
chi-square goodness-of-fit statistic |
|
generalized capability index based on the fitted curve |
|
generalized capability index based on the fitted curve |
|
generalized capability index CPL based on the fitted curve |
|
generalized capability index based on the fitted curve |
|
generalized capability index CPU based on the fitted curve |
|
name of fitted distribution (abbreviated to 8 characters) |
|
Cramer-von Mises EDF goodness-of-fit statistic |
|
p-value for Cramer-von Mises EDF goodness-of-fit test |
|
degrees of freedom for chi-square goodness-of-fit test |
|
estimated percent of population greater than upper specification limit |
|
estimated percent of population less than lower specification limit |
|
estimated standard deviation |
|
estimated mean |
|
generalized capability index K based on the fitted curve |
|
Kolmogorov-Smirnov EDF goodness-of-fit statistic |
|
p-value for Kolmogorov-Smirnov EDF goodness-of-fit test |
|
location parameter for fitted distribution. For the Gumbel, inverse Gaussian, and normal distributions, this is either the value of specified with the MU= option or the value estimated by the procedure. For all other distributions, this is either the value specified or estimated according to the THETA= option, or zero. |
|
lower specification limit |
|
upper endpoint of first interval used to calculate the value of the chi-square statistic. |
|
upper endpoint of last interval used to calculate the value of the chi-square statistic. |
|
midpoint of first interval used to calculate the value of the chi-square statistic. This is the leftmost interval that contains at least one value of the variable. |
|
midpoint of last interval used to calculate the value of the chi-square statistic. This is the rightmost interval that contains at least one value of the variable. |
|
lower endpoint of first interval used to calculate the value of the chi-square statistic. |
|
lower endpoint of last interval used to calculate the value of the chi-square statistic. |
|
observed percent of data greater than upper specification limit |
|
observed percent of data less than the lower specification limit |
|
p-value for chi-square goodness-of-fit test |
|
value of scale parameter for fitted distribution. For the lognormal distribution, this is the value of specified or estimated according to the ZETA= option. For all other distributions, this is the value specified or estimated according to the SIGMA= option. |
|
value of shape parameter for fitted distribution. For the beta, gamma, generalized Pareto, and power function distributions,
this is the value of , either specified with the ALPHA= option or estimated by the procedure. For the lognormal distribution, this is the value of , either specified with the SIGMA= option or estimated by the procedure. For the Weibull distribution, this is the value of c, either specified with the C= option or estimated by the procedure. For the Johnson and distributions, this is the value of , either specified with the DELTA= option or estimated by the procedure. For distributions without a shape parameter (Gumbel, normal, exponential, and Rayleigh
distributions), |
|
value of shape parameter for fitted distribution. For the beta distribution, this is the value of , either specified with the BETA= option or estimated by the procedure. For the Johnson and distributions, this is the value of , either specified with the GAMMA= option or estimated by the procedure. For all other distributions, |
|
target value |
|
upper specification limit |
|
variable name |
|
width of histogram interval |
The OUTHISTOGRAM= data set contains information about histogram intervals. Since you can specify multiple HISTOGRAM statements with the CAPABILITY procedure, you can create multiple OUTHISTOGRAM= data sets.
The data set contains a group of observations for each variable plotted with the HISTOGRAM statement. The group contains an observation for each interval of the histogram, beginning with the leftmost interval that contains a value of the variable and ending with the rightmost interval that contains a value of the variable. These intervals will not necessarily coincide with the intervals displayed in the histogram since the histogram may be padded with empty intervals at either end. If you superimpose one or more fitted curves on the histogram, the OUTHISTOGRAM= data set contains multiple groups of observations for each variable (one group for each curve). If you use a BY statement, the OUTHISTOGRAM= data set contains groups of observations for each BY group. ID variables are not saved in the OUTHISTOGRAM= data set.
The OUTHISTOGRAM= data set contains the variables listed in Table 5.25. By default, an OUTHISTOGRAM= data set contains the _MIDPT_
variable, whose values identify histogram intervals by their midpoints. When the ENDPOINTS= or NENDPOINTS option is specified, intervals are identified by endpoint values instead. If the RTINCLUDE option is specified, the _MAXPT_
variable contains an interval’s upper endpoint value. Otherwise, the _MINPT_
variable contains the interval’s lower endpoint value.
Table 5.25: Variables in the OUTHISTOGRAM= Data Set
Variable |
Description |
---|---|
|
number of variable values in histogram interval |
|
name of fitted distribution (if requested in HISTOGRAM statement) |
|
estimated percent of population in histogram interval determined from optional fitted distribution |
|
upper endpoint of histogram interval |
|
midpoint of histogram interval |
|
lower endpoint of histogram interval |
|
percent of variable values in histogram interval |
|
variable name |
An OUTKERNEL= data set contains information about kernel density estimates requested with the KERNEL option. Because you can specify multiple HISTOGRAM statements with the CAPABILITY procedure, you can create multiple OUTKERNEL= data sets.
An OUTKERNEL= data set contains a group of observations for each kernel density estimate requested with the HISTOGRAM statement.
These observations span a range of analysis variable values recorded in the _VALUE_
variable. The procedure determines the increment between values, and therefore the number of observations in the group. The
variable _DENSITY_
contains the kernel density calculated for the corresponding analysis variable value.
When a density curve is overlaid on a histogram, the curve is scaled so that the area under the curve equals the total area
of the histogram bars. The scaled density values are saved in the variable _COUNT_
, _PERCENT_
, or _PROPORTION_
, depending on the histogram’s vertical axis scale, determined by the VSCALE= option. Only one of these variables appears
in a given OUTKERNEL= data set.
Table 5.26 lists the variables in an OUTKERNEL= data set.
Table 5.26: Variables in the OUTKERNEL= Data Set
Variable |
Description |
---|---|
_C_ |
standardized bandwidth parameter |
_COUNT_ |
kernel density scaled for VSCALE=COUNT |
_DENSITY_ |
kernel density |
_PERCENT_ |
kernel density scaled for VSCALE=PERCENT (default) |
_PROPORTION_ |
kernel density scaled for VSCALE=PROPORTION |
_TYPE_ |
kernel function |
_VALUE_ |
variable value at which kernel function is calculated |
_VAR_ |
variable name |