I have a dataset that has data that is pooled across different years.
At the moment, I would to like be able to identify the occupational codes which are common across two years (e.g. 2004 and 2005).
So for example, say in the year 2004 the following occupational codes are present:
0101
0102
0103
0104
0105
And in the year 2005, the following occupational codes are present:
0101
0102
1111
1112
1113
Is there a command/function in Stata which can tell me that only occupational codes "0101" and "0102" are present in both? Note that I can't use merge as I'm not using two different .DTA files - it's within the dataset.
Thanks
Related Posts with Identifying differences in a variable within a dataset
Stata file to learn fromHello all, I am trying to learn Stata, and I was wandering if you have a Stata file (containing a sa…
How to filter data using keywordsHi everyone, I am a novice user of STATA. I have collected execucomp data on excel, where manager d…
how to surpress the "graphs by group" when graphing histogram with by optionI do not want to display "graphs by group", Here is the code: Code: * Example generated by -dataex…
METAN command on log-transformed odds ratiosDear Statalist Member, I have several Effect Sizes (ES) with accompanied 95% Confidence Intervals (…
Seasonally adjusted GDPI guess this is a simple question. How to get the seasonally adjusted GDP continuously compounded g…
Subscribe to:
Post Comments (Atom)
0 Response to Identifying differences in a variable within a dataset
Post a Comment