SAS PROGRAMMING HANDOUT #12 INSIGHT#1 INSIGHT can be used to enter and analyse data as in a spreadsheet, or it can be used to analyse data in a SAS data set. On the command line type: INSIGHT You will then be prompted to select (open) a LIBRARY (Select SASHELP). Or before you enter INSIGHT, create a LIBNAME in the PGM window: eg, LIBANME JIM 'A:';. You will then be prompted to select a SAS data set (Select RETAIL). You will then see the data set in a spreadsheet format. Click on ANALYSE. You will see the options: HISTOGRAM/BAR CHART[Y] BOX PLOT/MOSAIC PLOT [Y] LINE PLOT [YX] SCATTER PLOT [YX] ROTATING PLOT [ZYX] DISTRIBUTION [Y] FIT [YX] MULTIVARIATE [Y] HISTOGRAM/BAR CHART [Y] This will create histograms of the Y-variables selected BOX PLOT/MOSAIC PLOT [Y] This will create box-plots of the Y-variables selected LINE PLOT [YX] This will create Y by X plots for the variables selected SCATTER PLOT [YX] This will create Y by X plots for the variables selected ROTATING PLOT [ZYX] This will create a 3-dimensional plot of Z,Y,X which then can be rotated DISTRIBUTION [Y] This creates histograms and box-plots for the Y-variables selected FIT [YX] This will perform regression on the Y,X variables selected. By clicking on the METHOD icon, the dependent variable can have the normal, binomial (logistic), or Poisson distribution. The Y-variable can be transformed using the appropriate LINK function. For example, the logit link and binomial distribution will perform logistic reg. For the Gaussian (normal) distribution and canonical (or identity link) usual regression will be performed. By clicking on the OUTPUT icon, you can control the output. The default will include the usual ANOVA table, parameter estimates, se's and t, and p-values. In addition a plot of residuals with predicted values will be plotted. MULTIVARIATE This will compute all univariate statistics as well as all correlations In order to print anything shown on the screen, merely click on the print icon and follow instructions. Specify WINPRTM when prompted for device.