Announcement

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

  • How to duplicate an observation

    Hello,

    I need to duplicate a few observations in my data and then edit each observation separately. Some of my participant ID's are couples, so one ID is actually for two people. I want to duplicate the observations where the participant ID is a couple, then replace the participant ID with the correct ID for each member of the couple individually.

    How do I write the code for this?

    Thanks,
    Alyssa

  • #2
    Code:
    help expand

    Comment


    • #3
      Hi, how do you edit each duplicates separately after expanding? For example, I duplicated the observation "EU" by 6, and for each duplicated observation I would like to change it to "Austria, Belgium, Croatia, Italy, Poland".

      Comment


      • #4
        you don't show us your code so, did you use the "generate()" option when you used the -expand- command? if yes, then you can use that

        Comment

        Working...
        X