Announcement

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

  • Duplicate columns with Stata 13

    Hello all,

    I am using Stata 13 version.

    In my database, I have a column with data related to individuals’ age. I would like to duplicate this column in order to have two equal columns with the same data. How could I do it?

    Thank you so much in advance.

    Best wishes,
    Luisa

  • #2
    Code:
    generate age2=age

    Comment


    • #3
      Also consider clonevar age2 = age. Look at the help files to learn about the differences between Svend's and my suggestions, and discover if relevant in your case.

      Comment


      • #4
        Ok, I will do it.

        Thank you so much!

        Comment


        • #5
          Also, there is no jargon like Stata's jargon. Stata has variables, not columns. Spreadsheets do and buildings may have columns.

          Comment

          Working...
          X