I have two datasets and I want to make sure that the same IDnumber has not been recorded twice in the two different data sets (They are two different stata files). See example below. Variable name is IDnumber. How can I ask stata to highlight where the same IDnumber has been recorded twice. for example in this data set, IDnumber 1 and 3 have been recorded twice and I would like stata to list these for me.
Eg.
Dataset1
IDnumber
1
2
3
4
5
Dataset2
IDnumber
1
3
6
7
8
Thanks very much
Related Posts with Compare variable in two stata files and list
Difference-in-Difference, with three treatment groups and one control groupHello everyone, I am trying to do the analysis with diff-in-diff estimation method and bumped into …
No Cointegration with Johansen but VECM shows significant coefficient.Greetings Stata Users. I have one simple question. It exist cointegration betwen variables when the…
Panel data SUR methodDear Statalist, I am a PhD student and am using panel data to estimate the effect of macro variable…
Panel data - censored regression, tobitWe are trying to work out a regression on poverty analysis using underweight as a proxy, i.e. higher…
nwcommands: handling survey based network data for several hundred respondentsHello there: I'm preparing to process data for a survey of 500 people. Alongside other standard soci…
Subscribe to:
Post Comments (Atom)
0 Response to Compare variable in two stata files and list
Post a Comment