1 | Training Set:
Specify the data to be used for training the algorithms.
| ||||||||
2 | Training Size: Specify what % of the data points should be picked for the training set. These are used to build the model, and the remaining points are used to test the model. | ||||||||
3 | Probability: If this is true, the proportion of the votes for the winning class are returned as attribute prob. You can analyze the strength of the prediction using the probability values. The default value is not to request for the probability values. | ||||||||
4 | Use All: This controls the handling of ties. If true, all distances equal to the kth largest are included. If false, a random selection of distances equal to the kth is chosen to use exactly k neighbors. | ||||||||
5 | Num Neighbors: This is the number of neighbors that are considered to determine the classification (value of k). The default value if you do not specify a value is k = 3. | ||||||||
6 | Min Votes: This is the minimum vote for a definite decision, otherwise doubt. (More precisely, less than k-l dissenting votes are allowed, even if k is increased by ties.). The default value of this variable if you don't specify this is 0. | ||||||||
7 | Additional Options: This field is optional. You can specify any additional options for the R software program directly by typing it here. | ||||||||
8 | Help Button: Click on the Help Button to view the help documentation for this tool. | ||||||||
9 | Cancel Button: Click on the Cancel Button to discard your changes and exit this menu. | ||||||||
10 | OK Button: Click on the OK Button to save your changes and try to execute the program. Note that you will need to specify the required data in order to complete the analysis and generate outputs. If there are any missing data, then the software will remind you to specify the data and click on Compute Outputs to generate analysis results. |
1 | Search Data: The available data displays all the columns of data that are available for analysis. You can use the search bar to filter this list and to speed up finding the right data to use for analysis. Enter a few characters in the search field and the software will filter and display the filtered data in the Available Data box. |
2 | Available Data: The available data box contains the list of data available for analysis. If your workbook does not have any data in tabular format, this box will display "No Data Found". The information displayed in this box includes the row number, whether the data is Numeric (N) or Text (T), and the name of the column variable. Note that the software displays data from all the tables in the current workbook. Even though data within the same table have unique column names, columns across different tables can have similar names. Hence, it is important that you not only specify the column name but also the table name. |
3 | Add or View Data: Click on this button either to add more data into your workbook for analysis or to view more details about the data listed in the available data box. When you click on this button, it opens up the Data Editor dialog box where you can import more data into your workbook, or you can switch from the list view to a table view to see the individual data values for each column. |
4 | Required Data: The code for the required data specifies what data can be specified for that box. An example code is N: 2-4. If the code starts with an N, then you will need to select only numeric columns. If the code starts with a T, then you can select both numeric and text columns. The numbers to the right of the colon specify the min-max values. For example, if the min-max values are 2-4, then you need to select a minimum of 2 columns of data and a maximum of 4 columns of data in this box. If the minimum value is 0, then no data is required to be specified for this box. |
5 | Select Button: Click on this button to select the data for analysis. Any data you select for the analysis is moved to the right. To select a column, click on the columns in the Available Databox to highlight them and then click on the Select Button. A second method to select the data is to double click on the columns in the list of Available Data. Finally, you can also drag and drop the columns you are interested in by holding down the select columns using your left mouse key and dragging and dropping them in one of the boxes on the right. |
6 | Selected Data: If the right amount of data columns has been specified, the list box header will be displayed in the black color. If sufficient data has not been specified, then the list box header will be displayed in the red color. Note that you can double-click on any of the columns in this box to remove them from the box. |
7 | View Selection: Click on this button to view the data you have specified for this analysis. The data can be viewed either in the tablular format or you can view a graphical summary of the data selected. |
1 | R Program: You can view the R program that will be executed here. This program is usually automatically generated from the options you have specified in the setup earlier. This is the program that will be executed by the R program to generate analysis outputs. If you like, you can edit this program. |
2 | Auto Mode: If the radio button is selected as Auto, then the software will automatically update this code based on any changes you make in the input dialog box. We recommend that you use this option to generate the R program so that all your input settings are used to generate analysis results. |
3 | Manual Mode: If you use the Manual option, then you will be allowed to edit the R program before the program is executed. Make sure that you specify a syntactically correct program; otherwise, the R program may report errors. |
1 | Verify Checks: The objective of this analysis as well as any checks that are performed are listed in this dialog box. For example, the software may check if you have correctly specified the input options and if you have specified the data correctly for analysis. |
2 | Check Status: The results of the analysis checks are listed here. If the checks are passed, then they are shown as a green-colored checkmark. If the verification checks fail, then they are shown as a red-colored cross. If the verification checks result in a warning, they are shown in the orange color exclamation mark and finally, any checks that are required to be performed by the user are shown as blue info icons. |
1 | Notes Section: The analysis results section shows a comparison of the kNN model predictions vs. the test data if test data is available. If no test data is available, the results are shown for the training data set. The cross-table contains information about the number of records in that cell, the chi-square value, and the proportion of data that falls in that cell. |
2 | Graph Section: A confusion matrix plot is also shown in the graphical portion of the display. From this plot, we can see that there were 8 instances where the predicted value was 3, and the actual value was 3, etc. Ideally, for a good fit, all the off-diagonal elements should be close to 0. The conclusion at the bottom shows the accuracy of the prediction for the training data set and the test data set (if available). The prediction column uses the kNN model that was developed to make predictions for the missing values of the response variable. |