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
ANOVA when unequal varianceHi I used the Kruskal-Wallis H test instead of One-way ANOVA to compare income across three groups b…
countries and longitudinal dataDear Statalisters, I have a dataset, which involves the fifth wave of SHARE DATA and I want to exam…
How to remove the average from marginplotHello, I got 2 continous variables with an interaction, I'm trying to visualise that as a graph, h…
keep only panel obsHello everyone, I am trying to run a diff in diff in stata. I have more than 3,500 obs, some of them…
Model specification for firm relocationI am writing a dissertation on the factors behind firm relocation. I have a dataset of firms’ origin…
Subscribe to:
Post Comments (Atom)
0 Response to Compare variable in two stata files and list
Post a Comment