Hello.
I have a file with about 30 columns of integers. I need to create a dummy variable that indicates if at least 2 values per row of any columns have identical values between them.
For example
12 13 12 14: dummy = 1
12 13 14 12: dummy = 1
12 13 14 15: dummy = 0
How can I do it? Thank you
Related Posts with 2 identical values between any two columns
calculating marginal effect of logged independent variableDear Statalists,
I have a question which I tried to look it up here to see if anyone has asked befo…
Help needed with areg commandI just discovered the areg command, which can be used to account for fixed effects.
If both my inde…
Coefficient of level and lagged explanatory variable with different signHi,
Estimating by system GMM and treating the variable of interest as exogenous, without including …
Instrumental Variable Estimation with binary iv and categorical dependent variableDear Sir/Madam,
Thank you very much for providing this kind of forum.
By this post, I would like to…
How to restructure aggregated count data as individual observation?Hi altruist,
I am just wondering whether STATA has any function to convert aggregated count data in…
Subscribe to:
Post Comments (Atom)
0 Response to 2 identical values between any two columns
Post a Comment