Hello,
I have been using custom tables to combine several variables (e.g., medicare, medicaid, private insurance, no insurance) that have the same categories (e.g., Yes, No, Unknown) to make the data visualization more powerful. After running the syntax (I've pasted an example below), I then use my mouse to select the row of Yes and then right click to create graph --> bar to create a bar graph that shows all the variables side by side.
I would like some resources so I can accomplish this entire process using syntax so that it is easier to repeat at a later date and to record my process.
CTABLES
/VLABELS VARIABLES=appMedicaid appMedicare appACAExchange appOtherPublicIns appEmployerIns appEmployerInsNYE appOtherPrivateIns
DISPLAY=LABEL
/TABLE BY appMedicaid [COUNT F40.0] + appMedicare [COUNT F40.0] + appACAExchange [COUNT F40.0] +
appOtherPublicIns [COUNT F40.0] + appEmployerIns [COUNT F40.0] + appEmployerInsNYE
[COUNT F40.0] + appOtherPrivateIns [COUNT F40.0]
/SLABELS VISIBLE=NO
/CLABELS COLLABELS=OPPOSITE
/CATEGORIES VARIABLES=appMedicaid appMedicare appACAExchange appOtherPublicIns appEmployerIns
appEmployerInsNYE appOtherPrivateIns ORDER=D KEY=VALUE EMPTY=INCLUDE
/CRITERIA CILEVEL=95
/TITLES
TITLE='Health Insurance at Application (*may receive more than one type)'.
To create graph:
- double click table in output
- click and drag all cells in the Yes row
- right click - hover over "create graph" from context menu
- left click on "bar" from submenu
- double click on resulting graph and use the menus in popup window to:
- show data labels
- Adjust titles on axis and chart title
#SPSSStatistics#Support#SupportMigration