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
Why do Poisson and Negative Binomial Regressions yield the same result?I am using the count data models as I have a count dependent variable (0, 1, 2, 3, 4). There is no …
Diagnostics: Power of ovtest and leverage pointsDear all, I have two relatively small Data sets (N=76 and N=111) and I use a WLS approach with awei…
Why are missing values treated as positive infinity in Stata?Up until now, I have never found any practical use for this. In fact, it generally results in confus…
how to use firm new names to replace old names in two different dataset? Code: * Example generated by -dataex-. To install: ssc install dataex clear input str65 firmNameNo…
Generalized difference in differenceI'm studying the causal effects of a state policy, nurse practitioner scope of practice law, on vari…
Subscribe to:
Post Comments (Atom)
0 Response to 2 identical values between any two columns
Post a Comment