Hello,
I have data with 3 variables: Company_name (uniquely defined), owner_name (not uniquely defined) and treat (binary whether company was treated or not).
I would like to extract the Owner_names for which treat observations take both values 0 and 1.
I tried duplicates list Owner_name if treat==0 & treat==1 but it is not the right command.
Can you help?
Thank you
Related Posts with extract duplicates list for which some other variable takes both possible values
Local and global macro are not capturing variables' names but the values in the first rowDear all, I have a problem when using the local and global macro. When I set up a local macro base…
clustering and concentration Stata code Hi everyone, I am in the process of writing one of my dissertation chapters. Using US Census and A…
Nested Variables in glmI am trying to use nested variables in glm because I have a non-normal dependent variable potentiall…
Foreach Loop to Rename VariableDear all, I was trying to use foreach loop to rename variables, I wanted to names of the variables …
How to calculate ten-year moving average of variable x by the dummy variable europe in a dataset as the following? Many thanks! Code: * Example generated by -dataex-. To install: ssc install dataex clear input float id_number i…
Subscribe to:
Post Comments (Atom)
0 Response to extract duplicates list for which some other variable takes both possible values
Post a Comment