Hello all,
I am brand new to stata and this forum has been super helpful but I don't know the correct term to even search for help with this question.
I would like to collapse two columns of variable data. Data looks like below.
I would like it to look like this
I would like to preserve the missing data entry. I've tried doing egen and rowtotal but I get 0's for missing data.
Any suggestions? I'm certain this is a basic question and if its been asked multiple times I would be happy with a reference to the answer. Thanks for reading my first post.
I am brand new to stata and this forum has been super helpful but I don't know the correct term to even search for help with this question.
I would like to collapse two columns of variable data. Data looks like below.
1/2 group | 2/2 group | |
1 | 1 | |
2 | 1 | |
3 | 1 | |
4 | 1 | |
5 | 0 | |
6 | 0 | |
7 | . |
full group | |
1 | 1 |
2 | 1 |
3 | 1 |
4 | 1 |
5 | 0 |
6 | 0 |
7 | . |
Any suggestions? I'm certain this is a basic question and if its been asked multiple times I would be happy with a reference to the answer. Thanks for reading my first post.
Comment