Announcement

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

  • Merging two boxplot in one...

    Hi,

    I succeeded in producing a boxplot of 6 variables by two types of polulations. So I have two boxplot each presenting the 6 variables.
    However, I would like to "merge" the two boxplots such that for each variable I would have the two boxplots for each populations.

    Here is the command : graph box pt01 sa01 gp01 gs01 dc01 dm01, by(, graphregion(fcolor(none) lcolor(none) ifcolor(none) ilcolor(none))) by(pop)
    On the figure, I would like to have the boxplots for one variable side by side for the two populations (1 and 2).

    I looked at the examples, I search on the Web but I just can't figure it out... ;-(

    Need your help,
    Thanks in advance,
    Christian
    Attached Files

  • #2
    Evidently your underlying data are scores 1 2 3 4 5. For such data box plots are not effective. You'd be better off with 6 x 2 x 5 bars showing the actual frequencies. In almost all groups here at least 25% and in some groups at least 50% of values are exactly 5, but the percents achieving 5 are different and possibly of great interest.

    Comment


    • #3
      Hi Nick,
      Thank you very much for this advice. I will do it.
      Christian

      Comment


      • #4



        Assuming your dataset is safely saved then showing the results of

        Code:
        contract POP PT01 SA01 GP01 GS01 DC01 DM01 
        dataex
        would let others show possibilities for your data. If the call to dataex produces an error message, then see FAQ Advice #12 for more.

        Comment

        Working...
        X