Announcement

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

  • Plot Standardized Differences between Groups

    I want to standardize a set of outcomes and plot differences based on a category variable. I was using the stddiff package and getting exactly what I want in the stored results as r class. But how do I plot the standardized differences? I have something like this:

    HTML Code:
    sysuse auto
    stddiff price mpg trunk, by( foreign )
    return list
    How do I plot r(stddiff)? I want to make it look something like a marginplot.
    Last edited by Chirag Yadav; 02 Nov 2022, 20:09.

  • #2
    You can likely use coefplot from ssc

    Comment


    • #3
      Thank you for the suggestion. I tried coefplot and it isn't working. I think that maybe because the values are stored as a matrix.

      Comment


      • #4
        Yeah coefplot works happily with matrices

        Comment


        • #5
          Chirag Yadav "it isn't working" is not going to get you very useful responses. Please read the Statalist FAQ for advice on how to post effective questions. Pay particular attention to part 12 of the FAQ, which advise you to post a data extract using the dataex command, and also post your code using the CODE delimiters (the # buttons on the toolbar) so that it is well-formatted.

          Also, when you reference commands that are not built into Stata, please mention their source. In this case, stddiff is from Stata Journal and can be installed using
          Code:
          net install stddiff.pkg
          Last edited by Hemanshu Kumar; 02 Nov 2022, 23:16.

          Comment


          • #6
            Previously also discussed here.
            http://publicationslist.org/eric.melse

            Comment

            Working...
            X