Hi, I have a small dataset for the purpose of demonstration below,
clear
input str80 id byte male
000001 0
000001 0
000001 0
000001 0
000002 0
000002 0
000002 0
000002 0
000003 0
000003 0
000003 0
000003 0
000004 1
000004 1
000004 1
end
I just try to make sure that I can use Stata code to quickly identify an observation with specific ID. For example, I want to find where the observations with the ID of "000004" are.
Can someone show me how to do this in Stata code?
Thank you!
clear
input str80 id byte male
000001 0
000001 0
000001 0
000001 0
000002 0
000002 0
000002 0
000002 0
000003 0
000003 0
000003 0
000003 0
000004 1
000004 1
000004 1
end
I just try to make sure that I can use Stata code to quickly identify an observation with specific ID. For example, I want to find where the observations with the ID of "000004" are.
Can someone show me how to do this in Stata code?
Thank you!
Comment