Hi everyone! I'm having a little trouble with a data set. I've the idea of dropping a variable if all the observations have the value of 1, The table is like this; var1 var2 var3 var4 0.5 1 1.2 0.4 0.9 1 1.5 0.2 0.7 1 1.1 0.3 1 1 1 1 I want to drop the variable var2 in this case. My problem is that I can't do it mannualy, as the four variables are being included because of a macro, and the name of them can change. Is there any way to remove it conditionally? Thanks in advance.
... View more