Announcement

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

  • Dot plot mean by group

    Dear all,

    I want to create a dot plot that shows the mean of support for different policies by group. I have a treatment and a control group (dummy = 1 indicates that participant received treatment). If a participant supports a policy, this is indicated by another dummy = 1. I want it to look like the example bellow (Source: Marin Corbi, 2020). I tried several things, going through this website https://www.stata.com/support/faqs/g...ble/index.html. But nothing really worked the way I wanted it to work.

    Super happy about every advice.

    Best,
    Fabian

    Click image for larger version

Name:	Bildschirmfoto 2021-07-06 um 12.14.54.png
Views:	1
Size:	161.3 KB
ID:	1617646

  • #2
    Here is a relevant Stata Journal article (by Nick Cox): https://journals.sagepub.com/doi/pdf...867X0800800208
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment


    • #3
      Hey Maarten, Thanks for the recommendation but I still don't manage to get it. The enclosed pictures show what I get. The first picture is close to what I want to have. However, I want treatment means and control means to be on the same line..


      Click image for larger version

Name:	Bildschirmfoto 2021-07-06 um 14.19.37.png
Views:	1
Size:	358.6 KB
ID:	1617654
      Click image for larger version

Name:	Bildschirmfoto 2021-07-06 um 14.19.50.png
Views:	1
Size:	321.3 KB
ID:	1617655

      Comment


      • #4
        To help you we need an example from your data. See the Statalist FAQ section 12.2 on how to do that (black bar near the top of this page).
        ---------------------------------
        Maarten L. Buis
        University of Konstanz
        Department of history and sociology
        box 40
        78457 Konstanz
        Germany
        http://www.maartenbuis.nl
        ---------------------------------

        Comment

        Working...
        X