Announcement

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

  • simple commands

    I can't find a list of the simplest commands. I eventually found out how to generate the reciprocal of a number, and am now having no luck discovering how to subtract a constant from each observation of a variable. Google searches lead to all the complicated stuff but not the basics.

  • #2
    HTML Code:
    https://people.ucsc.edu/~aspearot/Econ113W13%20/basic_tutorial_stata.pdf
    generate (which can be written as g or gen) will do that sort of thing.

    g invx = 1/x
    g invc = x - 2

    Comment


    • #3
      thank you very much, and do you know of a general list for this kind of thing?

      Comment


      • #4
        I'm sorry, I see you gave it to me! many thanks

        Comment


        • #5
          My hint is that in your examples you are looking for operators so

          Code:
          help operators

          Comment

          Working...
          X