Hi Statalisters,
Just have a simple question. If my dataset contains variable v1, v2, and v3, I use -duplicates list v1 v2- to list whether there are duplicate observations conditioning on v1 and v2. However, I also want to list v3 of those previous duplicate observations though it is not included in duplicates list logic. In other words, I check duplicates between v1 and v2, but want to list the full observations with common v1 and v2.
Is there any salient solution to this?
Thanks in advanced.
Related Posts with Duplicates list full pieces of observations
Syntax for the * commentStata has two types of single-line comments: // and *. The comment // has identical syntax to the on…
Generate random integersHello Listers i want to make a mock dataset i would like to generate 2 integers at random 1) eithe…
Stata Journal cumulative author indexThe Stata Journal has now completed publishing volume 20. The journal's contents are searchable on R…
Long-run coefficient estimation for fixed-effects modelDear list members, I have an unbalanced long T dataset (38 quarters), and running a fixed-effects m…
How to drop specific observations from dataset in Stata?Hello, I have a large dataset but I do not need all observations. The dataset contains data for eve…
Subscribe to:
Post Comments (Atom)
0 Response to Duplicates list full pieces of observations
Post a Comment