I tried running ttest on my DV (whosefault) and the IV (successcond) but for some reason, Stata tells me there is only 1 group found:

Code:
. ttest whosefault, by(successcond)
1 group found, 2 required
r(420);
I tried recoding the IV from 0 and 1 to 2 and 3, I've tried updating my Stata, I've also tried recoding the variable in Excel then import it to Stata and none of it works. I've checked and this variable is identified as byte and not string. I have another IV which is coded in exactly the same way (0, 1) and it works though. I've tried this exact same code on another data set and it worked as well. I have no idea what i'm doing wrong!

Please advice.