HI, I wanted to know if it is possible to run ttests in order to calculate the difference between the means, also with categorical variables and dummy variables?
At the moment I am using only continuous variables and a dummy one after the "by":
e.g. ttest var_continuous, by(dummy_var)
but I would need to do the same also with categoricals and dummies instead of the continuous variables.
Is it possible? or is there another method to look at the difference between categorical and dummy variables of two different groups?
Thank you in advance