0byt3m1n1
Path:
C:
/
Users
/
Administrator
/
SYSTAT
/
SYSTAT_13
/
Gallery
/
[
Home
]
File: Simple Correspondence Analysis Plot.syc
REM This item was created using LEISURE, with the variables from MANUAL, to RETIRED as the count variables, and ACTIVITY$ as the variable, containing levels of the row variable. TOKEN TOKEN &message / TYPE = MESSAGE PROMPT = 'This item performs simple, correspondence analysis, and plots the coordinates of, the observations and variables either separately or, overlaid depending on your choice. The input data, may either be rectangular (raw) or in the form of a, crosstabulation.' TOKEN &input / TYPE = OPEN PROMPT = "Open your input data file." PUSH ALL USE &input GRAPH NONE CORAN TOKEN / TYPE = CHOICE PROMPT = 'Specify the form of your input data.', "Rectangular" = '\Miscellaneous\Coranrect.syc', "Crosstabulated" = '\Miscellaneous\Corancross.syc' SAVE coordinates ESTIMATE OUTPUT / NOSCREEN USE coordinates IF FACTOR(1) = . THEN LET obsvar = 1 If FACTOR(1) <> . THEN LET obsvar = 2 IF FACTOR(1) <> . THEN LET DIM(1) = FACTOR(1) IF FACTOR(2) <> . THEN LET DIM(2) = FACTOR(2) TOKEN / TYPE = CHOICE PROMPT = 'Specify the type of plot you want.', 'Row coordinates plot' = '\Miscellaneous\Coranrow.syc', 'Column coordinates plot' = '\Miscellaneous\Corancol.syc', 'Overlaid row and column coordinates plot' =, '\Miscellaneous\CoranRowCol.syc' PLOT DIM(2) * DIM(1) / XLABEL = 'Dim 1' YLABEL = 'Dim 2' COLOR = obsvar, SYMBOL = obsvar LABEL = LABEL$ LEGEND = NONE, XLIMIT = 0 YLIMIT = 0 POP ALL TOKEN OUTPUT *