Hi Stata users,
I am working with merging datasets in a loop (meaning at least hundreds of merging). However, I need to save the value of unmatched observations as a new variable. Is it possible to do it in Stata?

For example, after the merging I want to create a variable and store 983, 770 and so on as its values.
Any help would be highly appreciated.
Best,
Zariab Hossain
Uppsala University
I am working with merging datasets in a loop (meaning at least hundreds of merging). However, I need to save the value of unmatched observations as a new variable. Is it possible to do it in Stata?
For example, after the merging I want to create a variable and store 983, 770 and so on as its values.
Any help would be highly appreciated.
Best,
Zariab Hossain
Uppsala University
Comment