Qualitative-Qualitative Relationships
Note: The lessons in Part 5 are a continuation of the data work we saw in Part 4.
Key concepts/commands:
colandrowoptions withtab: show percentages by column/row in a two-way tabletab schooltype overallgrade, coltitle()option: add a title at the top (of a graph)graph bar, over(overallgrade) title("Overall school grade")ylabels()option: choose the y axis labels (for a graph)graph bar, over(overallgrade) over(schooltype) ylabels(0 10 20 30)#(#)#where each#is replaced with a specific number: indicate a sequence of numbers, counting up by a fixed amountgraph bar, over(overallgrade) over(schooltype) ylabels(0(10)30)rows()option with aby()option: choose the number of rows to usegraph bar, over(overallgrade) by(schooltype, rows(1))stack asyvars percentageoptions: make a bar chart into a stacked bar chartgraph bar, over(overallgrade) over(schooltype) stack asyvars percentage