K-Nearest Neighbors Results - Quick Tab

K-nearest Neighbors

Select the Quick tab of the K-Nearest Neighbors Results dialog box to access the options described here.

Summary
Click the Summary button to display a spreadsheet containing a brief summary of the current KNN analysis.
Model
Click the Model button to create a spreadsheet containing the KNN model specifications including the Prototype sample, number of nearest neighbors K, the distance measure, and the averaging scheme; refer to the Introductory Overview for details.
Descriptive statistics
Click this button to create a spreadsheet containing statistics relating to regression or classification results (whichever is appropriate). For regression tasks, the spreadsheet will contain the means and standard deviations of the observed and predicted variables, the S.D. ratio, and the correlation coefficient. For classification tasks, two spreadsheets containing the classification summary and a confusion matrix will be displayed.
Cross validation error
Click this button to produce the graph of K against the cross-validation error. This button is available only if you use cross-validation for estimating the number of nearest neighbors K.
Predictions
Use the options in this group box to compute predicted values and residuals/accuracy for each dependent variable specified in the analysis. Depending on the choice of options in the Include group box (see below), the results will include the values for the independent or predictor variables, dependent or outcome variables, predicted values, and/or residual (accuracy) values.
Include
In this group box, select the type of values that you want to include in the results when displaying Predictions and Histograms (see below).

Independents. Select this check box to include the independent variable values in spreadsheets and graphs.

Dependents. Select this check box to include the dependent variable values in spreadsheets and graphs.

Predictions. Select this check box to include predicted values in spreadsheets and graphs.

Residuals / Accuracy. Select this check box to include prediction residuals for regression (Accuracy for classification) in spreadsheets and graphs.

Standard deviation / Confidence. Select this check box to include classification Confidence levels or standard deviation for predictions (regression tasks).

Predictions
Click this button to create a spreadsheet of the variables and results selected in the Include group box.
Histograms
Click the Histograms button to create histograms of the variables and results selected in the Include group box.
Save
Click this button to display a standard variable selection dialog box, which is used to select variable(s) to be displayed together with other quantities of interest selected in the Include (see above) group box. After you select the variable(s), a spreadsheet containing the specified variable(s) will be displayed in an individual window (regardless of the settings on the Options dialog box - Output Manager tab or the Analysis/Graph Output Manager dialog box). You can, however, add the spreadsheet to a workbook or report using the or buttons, respectively. Note that in order to save the spreadsheet, you must select the spreadsheet and select Save or Save As from the File menu. This is useful if you want to use the residual/accuracy values for further analyses with other STATISTICA analyses.