0byt3m1n1
Path:
C:
/
Users
/
Administrator
/
SYSTAT
/
SYSTAT_13
/
Gallery
/
[
Home
]
File: ANOVA Interaction Overlay Plot.syc
REM This item was created using AFIFI, with SYSINCR as the response, DISEASE as the first factor, and DRUG as the second factor. TOKEN TOKEN &message / TYPE = MESSAGE PROMPT = 'This item creates a single, plot of the average dependent variable value at each, level of one categorical independent variable for each, level of another categorical independent variable. Use, this plot to illustrate interaction effects in two-way, ANOVA models.' REM After creating the graph, the data file in use contains the original, data as well as ANOVA diagnostic statistics. TOKEN &resp / TYPE = NVARIABLE PROMPT = 'Select a continuous response, variable.' IMMEDIATE TOKEN &fact1 / TYPE = VARIABLE PROMPT = 'Select the first categorical, factor. The selected variable appears along the X-axis, of the plot.' TOKEN &fact2 / TYPE = VARIABLE PROMPT = 'Select the second categorical, factor. The plot contains a line for each level of the, selected variable.' TOKEN &outfile / TYPE = SAVE PROMPT = 'Save Output File' OUTPUT / NOSCREEN PUSH GRAPH GRAPH NONE ANOVA SUBCAT &fact1 &fact2 DEPEND &resp WORK &outfile / RESID DATA ESTIMATE OUTPUT USE &outfile / NONAMES CATEGORY &fact1 &fact2 DOT &resp * &fact1 / OVERLAY GROUP = &fact2 LINE COLOR = {1, 2, 3, 4, 5,, 6, 7, 8, 9} TITLE = 'Least Squares Means' CATEGORY &fact1 &fact2 / OFF POP GRAPH TOKEN