Hi all, I'm struggling with how to phrase this search, so please feel free to link to a solution if you think my q has been answered.
I have a simple dataset that looks something like this:
In order to QA, I'm trying to create code that will distribute Attributes 1 & 2 to every ID, such that the data looks like this in the end:
I know I did this years ago, using a couple of very simple lines of code...I think an egen command was involved. But I can't find the do file and can't remember the code (my brain is cheese). Any thoughts?
Again, many thanks in advance for your help!
~Nereida
I have a simple dataset that looks something like this:
| ID | Attribute 1 | Attribute 2 |
| a | y | |
| a | ||
| b | y | |
| b | y | |
| c | y | |
| c | ||
| d | y | |
| d |
| ID | Attribute 1 | Attribute 2 |
| a | y | |
| a | y | |
| b | y | y |
| b | y | y |
| c | y | |
| c | y | |
| d | y | |
| d | y |
Again, many thanks in advance for your help!
~Nereida

Comment