Dear all,
I am trying to compare the averages of a large number of variables. I use the t-test command to look at their significance. Unfortunately, the t-test does not allow to indicate weights, which would be necessary in my case.
As I am trying to compare a large number of variable averages with each other which would make a compact display of the averages as well as the t-test result necessary.
I am currently using this code, there are many more variables in my var list, this is a shortened version for the example. I am quite happy with the way it is displayed, however I am not able it add my survey weights here. Is there a way to do that that I am not aware of?
foreach var of varlist var1 var2 {
asdoc ttest var3, by(`var'), rowappend save(try)
I have considered simply using the reg command, which might be difficult given that the numbers I am working with in some of the variables are rather small sometimes. I am also not sure how those results could be displayed in a concise manner.
Manny thanks for any help,
Elinor
I am trying to compare the averages of a large number of variables. I use the t-test command to look at their significance. Unfortunately, the t-test does not allow to indicate weights, which would be necessary in my case.
As I am trying to compare a large number of variable averages with each other which would make a compact display of the averages as well as the t-test result necessary.
I am currently using this code, there are many more variables in my var list, this is a shortened version for the example. I am quite happy with the way it is displayed, however I am not able it add my survey weights here. Is there a way to do that that I am not aware of?
foreach var of varlist var1 var2 {
asdoc ttest var3, by(`var'), rowappend save(try)
I have considered simply using the reg command, which might be difficult given that the numbers I am working with in some of the variables are rather small sometimes. I am also not sure how those results could be displayed in a concise manner.
Manny thanks for any help,
Elinor
Comment