Performs Bivariate Regression and Makes Scatter Chart
This script, when executed from a button or menu item on the view GUI, will perform a bivariate regression analysis on the selected data of the active theme or all data in the active theme if no selection exists. The result of this script is the coefficient of determination, or R squared. Additionally the user may elect to make a scatterplot of the data. Also of note in this script is that if there is a null value in the data set, that data record will not be analyzed, however, values of 0 or other dummy values will be included unless you screen for them. |