Announcement

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

  • Bug fix for dstat available from SSC

    An update to dstat is now available from the SSC Archive. To install the update, type

    Code:
    . ssc install dstat, replace
    or use the adoupdate command.

    Results for statistics mad(0,0), madn(0,0), mae(0), and maen(0) were wrong if weights were specified; this is fixed.

    ben


  • #2
    Trying to run the example
    Code:
    sysuse nlsw88, clear
    dstat (mean gmean median trim5 winsor5 huber95 hl) wage, over(union)
    I receive the error message "class mm_density undefined".

    Comment


    • #3
      Dear Dirk,

      I updated dstat from both the ssc server as well as the development server of Ben Jann, and in either case I did not receive the error message but this result:
      Code:
      Summary statistics                Number of obs   =      1,878
      
                  0: union = nonunion
                  1: union = union
      
      --------------------------------------------------------------
              wage |      Coef.   Std. Err.     [95% Conf. Interval]
      -------------+------------------------------------------------
      0            |
              mean |   7.204669   .1090065      6.990882    7.418455
             gmean |   6.262381   .0875045      6.090764    6.433997
            median |   6.191625   .1122608      5.971456    6.411794
             trim5 |   6.817126   .1026971      6.615713    7.018538
           winsor5 |   7.037521   .1068814      6.827902     7.24714
           huber95 |   6.654137   .1089403       6.44048    6.867793
                hl |   6.690819   .1067704      6.481418     6.90022
      -------------+------------------------------------------------
      1            |
              mean |   8.674294   .1942684      8.293289    9.055299
             gmean |   7.841896   .1641179      7.520023    8.163768
            median |    8.05153   .2265019      7.607308    8.495752
             trim5 |   8.309203   .1692544      7.977256    8.641149
           winsor5 |    8.43537   .1748754      8.092399     8.77834
           huber95 |   8.253002   .1645173      7.930346    8.575658
                hl |   8.272946   .1709531      7.937668    8.608224
      --------------------------------------------------------------
      So, maybe you should update moremata on your system:
      Code:
      ssc install moremata, replace
      http://publicationslist.org/eric.melse

      Comment


      • #4
        Thanks, you are right this solved it. I remembered vaguely that users of other ado-programs did report issues when Mata code has been used, but I didn't remember what to do to overcome the issue.
        Last edited by Dirk Enzmann; 27 Dec 2020, 07:47.

        Comment

        Working...
        X