0byt3m1n1
Path:
C:
/
Users
/
Administrator
/
SYSTAT
/
SYSTAT_13
/
Gallery
/
[
Home
]
File: Discriminant Analysis Misclassification Plot.syc
REM This item was created using OURWORLD, with GROUP as the grouping, variable, BIRTH_RT, DEATH_RT, and MIL as the analysis variables, axis minimum set to -5, and axis maximum set to 5. TOKEN TOKEN &message / TYPE = MESSAGE PROMPT = 'This item creates a plot, similar to the Discriminant Analysis Quick Graph. , However, instead of plotting all observations, only the, misclassified cases appear. Two temporary files, containing statistics necessary to create the plot are, created and subsequently deleted. Upon completion, no data file is open.' TOKEN &grpvar / TYPE = VARIABLE PROMPT = 'Select the grouping variable.', IMMEDIATE TOKEN &varlist / TYPE = NMULTIVAR PROMPT = 'Select the variables on, which to base the classification.' IMMEDIATE TOKEN &axismin / TYPE = NUMBER PROMPT = 'Enter the smallest value to, display on both axes.' IMMEDIATE TOKEN &axismax / TYPE = NUMBER PROMPT = 'Enter the largest value to, display on both axes.' IMMEDIATE TOKEN &outfile1 / TYPE = SAVE PROMPT = 'Save Scores to File' TOKEN &outfile2 / TYPE = SAVE PROMPT = 'Save Means to File' OUTPUT / NOSCREEN PUSH GRAPH GRAPH NONE DISCRIM MODEL &grpvar = &varlist WORK &outfile1 ESTIMATE USE &outfile1 / NONAMES BY &grpvar SWORK &outfile2 / AG CSTAT SCORE(1) SCORE(2) / MEAN BY OUTPUT BEGIN PLOT SCORE(2) * SCORE(1) / OVERLAY GROUP = &grpvar ELL = 0.750, YMIN = &axismin YMAX = &axismax, TITLE = 'Misclassification Plot', XMIN = &axismin XMAX = &axismax, XLAB = 'Factor(1)' YLAB = 'Factor(2)', SIZE = 0 LEGEND = NONE PLOT SCORE(2) * SCORE(1) / OVERLAY GROUP = &grpvar YMIN = &axismin, YMAX = &axismax TITLE = '' XMIN = &axismin, XMAX = &axismax XLAB = '' YLAB = '', LEGEND = NONE SIZE = misclass COLOR = BLACK USE &outfile2 / NONAMES PLOT ME2SCORE(2) * ME1SCORE(1) / OVERLAY GROUP = &grpvar, XMIN = &axismin XMAX = &axismax, YMIN = &axismin YMAX = &axismax, XLAB = '' YLAB = '' SIZE = 1 END 'Misclassification Plot' POP GRAPH TOKEN