Hi everyone, I would like for your help.
I have cross-sectional data which divided into treatment group and control group. In each group there are men and women. Now I want to check out that the groups are not different from each other in any parameter except to the treatment. So I want to calculate the means and to do t-test to see in they are statistically difference from each other, and than export the results to Excel and present them with asterisks. I attach screenshot from Lavy & Nussbaum (2023) for an example:
So I know of curse that for means of variables I can write:
And so on, but I really need your help in understand how to do t-test on the means of the difference groups and how to export the results to Excel.
I thank you already,
Fitzgerald.
I have cross-sectional data which divided into treatment group and control group. In each group there are men and women. Now I want to check out that the groups are not different from each other in any parameter except to the treatment. So I want to calculate the means and to do t-test to see in they are statistically difference from each other, and than export the results to Excel and present them with asterisks. I attach screenshot from Lavy & Nussbaum (2023) for an example:
So I know of curse that for means of variables I can write:
Code:
sum var1 if control == 1 sum var1 if control == 0
I thank you already,
Fitzgerald.
Comment