Announcement

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

  • cgmreg

    Hello all,

    I'm attempting to use cgmreg in stata, but when I run the code, I get this error message-

    You need the unique command. You can obtain it by typing "findit unique" in Stata.

    Nothing new happens when I look it up using findit unique- cgmreg is shown in the help file, with the example code in the same style as my own coding.

  • #2
    -unique- is a user-written program available at SSC; type
    Code:
    ssc install unique
    to download and install

    what is -cgmreg- and where did you obtain it?

    Comment


    • #3
      When I type

      Code:
      findit unique
      there are many hits but

      unique from http://fmwww.bc.edu/RePEc/bocode/u
      'UNIQUE': module to report number of unique values in variable(s) / The
      command unique without a by reports the number of unique / values for the
      varlist. With a by it does the same, but also / creates a new variable
      (_Unique by default but can be named in / the gen option). This new


      is among them -- and as Rich Goldstein explains, this is the command you need to install.

      Comment


      • #4
        Originally posted by Rich Goldstein View Post
        -unique- is a user-written program available at SSC; type
        Code:
        ssc install unique
        to download and install

        what is -cgmreg- and where did you obtain it?
        Amazing- Unique is actually a command, not an adjective for the sole command of cgmreg!!!! Thanks

        Comment

        Working...
        X