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
Related Posts with Ttest with categorical varaibles
Moving cumulative sum over 10-year periodDear Statalist Community, I am currently struggling with a data transformation task and was wonderi…
Reshape data from long to wide format using the rolling windowsDear all, I am desperately looking for your help. I am trying to reshape my data from long to wide …
Regression for state-wide daily=data with fixed population percentageHello, So I have data set up as such (sample data that I just made up): Code: * Example generated b…
Moving cumulative sum over 10-year periodDear Statalist Community, I am currently struggling with a data transformation task and was wonderi…
Regression for state-wide daily data with fixed population percentage within statesHello, So I have data set up as such (sample data that I just made up): Code: * Example generated b…
Subscribe to:
Post Comments (Atom)
0 Response to Ttest with categorical varaibles
Post a Comment