Announcement

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

  • psgraph

    I'm using the psgraph command to generate a propensity score histogram with the binary treatment variable and the pscore varaiable. The command is thus; "psgraph, NHIS mypscore". However, the results I get is; "unknown egen function sum()"

  • #2
    psgraph is part of the psmatch2 package from SSC, as you are asked to explain (FAQ Advice #12).

    The sum() function of egen is not documented but has been distributed with every Stata since a very early version.

    Problems with accessing egen functions have been reported several times by users using pirated versions of Stata. I don't have other suggestions.

    Comment


    • #3
      Thanks very much.

      Comment


      • #4
        What you can try is see whether any egen code is on your system, so show the results of


        Code:
        which egen
        which _gmean
        which _gsum

        Comment


        • #5
          Hi Nick,
          I typed the which egen command and this is the result I got;
          . which egen
          C:\Users\ACCOUNTS\AppData\Local\Temp\Rar$EXa7456.8 611\StataCorp Stata MP 16.0 Rev 2019-07-24 x64\ado\base\e\egen.ado*! version 3.4.1
          05jun2013

          Comment


          • #6
            Your copy of Stata is not properly installed. A search of this forum will find several similar replies.

            Comment

            Working...
            X