Qualitative-Qualitative Relationships

Note: The lessons in Part 5 are a continuation of the data work we saw in Part 4.

Key concepts/commands:

  1. col and row options with tab: show percentages by column/row in a two-way table

    tab schooltype overallgrade, col
  2. title() option: add a title at the top (of a graph)

    graph bar, over(overallgrade) title("Overall school grade")
  3. ylabels() option: choose the y axis labels (for a graph)

    graph bar, over(overallgrade) over(schooltype) ylabels(0 10 20 30)
  4. #(#)# where each # is replaced with a specific number: indicate a sequence of numbers, counting up by a fixed amount

    graph bar, over(overallgrade) over(schooltype) ylabels(0(10)30)
  5. rows() option with a by() option: choose the number of rows to use

    graph bar, over(overallgrade) by(schooltype, rows(1))
  6. stack asyvars percentage options: make a bar chart into a stacked bar chart

    graph bar, over(overallgrade) over(schooltype) stack asyvars percentage