Hello, I want to determine if values of var1 are all the same based on a group of values (levels of an identifier variable) in var2 (both vars are strings).
I tried using:
bysort var2: egen byte differ = diff(var1)
however it does that comparison between variables and not with values within a variable, and also doesn't work with by option.
Thank you for any help.
I tried using:
bysort var2: egen byte differ = diff(var1)
however it does that comparison between variables and not with values within a variable, and also doesn't work with by option.
Thank you for any help.
Comment