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
Count the number of global variables defined and input it in another global variableHi, I would like to count the number of global variables defined and input it in another global var…
t-test output table by groupHi all, It may seem a silly question but I'm struggling to create a table with a t test like this o…
Gen. new variables based on values for multiple existing variables, TSCS dataDear members, I have put together a data-set with information about military alliances btw states i…
create and call subroutine from the same .do fileHi, I have a large piece of code that I would like to break down in several smaller pieces of code …
Meta ForestplotHi everyone, I hope someone can help me. When creating a forest of lnRR with the Stata16 new command…
Subscribe to:
Post Comments (Atom)
0 Response to 2 identical values between any two columns
Post a Comment