Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Showing x-axis labels in Histograms with no value

    Hi All,
    I am trying to draw some histograms of categorical variables.

    Sample values are:
    "Every day" - 0
    "Several times a week" - 0
    "Once a week" - 1
    "Less than once a week" - 0


    Now, when code the histogram, it shows only "Once a week" and "Less than once a week" in the x-axis. But not showing the other two categories.

    Could anyone please assist me in this regard?

    Thanks,
    Argha
    Last edited by Asif Hassan; 12 Sep 2017, 00:22. Reason: Histogram

  • #2
    So, it seems that you have defined value labels but certain categories don't occur in a data set. I would -contract- to a new dataset, add new observations with frequency zero, then use -graph hbar (asis)-

    Comment

    Working...
    X