Workspace Node: K-Nearest Neighbors - Specifications - Quick Tab

The K-Nearest Neighbors workspace node can be accessed from the Feature Finder, the ribbon bar, or the Node Browser. The Specifications - Quick tab is displayed by default when you open the specifications dialog box. If you select the dependent variables as categorical, Statistica KNN treats the problem as a classification task; otherwise it is regression. You can also exclude certain data cases of your choice using the Response codes and Predictor codes buttons (see below). Refer also to the Introductory Overview. Note that Statistica KNN can process multiple dependent variables in one analysis.

Element Name Description
Use previous input description Select this check box to use the variable selection specified in the Select dependent variables and predictors node, accessed via the ribbon bar or by double-clicking the data source node in the workspace. Note that the previous Select Cases and Weight specifications will be used also. If case selection conditions and/or weights were previously specified, you can view those specifications from this workspace dialog box, but you cannot change them (the options will be dimmed).
Variables Click this button to display a variable selection dialog box. Select a single or a number of continuous or categorical dependent variables, and a list of predictor variables (which can be continuous, categorical, or a mixture of both).
Response codes Click this button to display the Select Dependent Code dialog box, which is used to select the codes identifying the levels for the dependent variable. Codes must be integer values or text labels (and can be dates, times, etc.); at least two codes must be specified for the categorical dependent variable. Note that text labels for the code values will be created if no matching text labels are found in the original categorical dependent variable.
Predictor codes Click this button to display the Select Codes for Independent Variables dialog box, which is used to select the codes identifying the levels for the dependent variable. Codes must be integer values (and can be dates, times, etc.); at least two codes must be specified for any categorical independent variable. Note that text labels for the code values will be created if no matching text labels are found in the original categorical independent variable.
MD deletion Missing data can be deleted Casewise or substituted by means (Mean substitution) depending on the option selected in the MD deletion group box.
Casewise Select the Casewise option button to include only the cases that do not contain any missing data for any of the selected variables in the analysis.
Mean substitution Select the Mean substitution option button to replace missing data by the means for the respective variables (for this analysis only, not in the data file).

Options / C / W. See Common Options.

OK Click the OK button to accept all the specifications made in the dialog box and to close it. The analysis results will be placed in the Reporting Documents node after running (updating) the project.

See also, Specifications - Sampling tab, Specifications - Options tab, Specifications - Cross-validation tab, Specifications - Memory Usage tab, Results - Quick tab, Results - Plots tab, Results - Code Generator tab, Downstream tab, and Home tab.