Hey guys, I need your help. So I calculated the mean of 2 groups and then calculated the difference of these two means in excel and know I want to know if this difference is significantly different than zero. But I had to do preserve and restore before calculating the second mean. So I did summarize to see the result of the two means but because of restore the variable are not in the dataset anymore. So for example I want to know if the difference of the two means, e.g. 0,4 ist sig. different to zero. How to I calculate this? And to I have to do this for every single value or is there a faster way? I hope you understand my problem.
Code:
preserve
calulation of first mean
summarize
restore (in order to not shorten the dataset)
preserve
calculation of second mean
summarize
restore
then because of restore the mean variable 1 and 2 do not exist anymore in the dataset. Now I want to know if the difference of mean 1 and 2 ist sig. different to the value zero.
Thanks!
Related Posts with Difference of two means significantly different to zero
How to adjust the scale on the axes of a graph before outputting in a batch file, if the yscale/xscale option is not availableIf I am not using the twoway plot or some other library that has the yscale() or xscale() option, ho…
Event Study and Two-Way Fixed-Effect Diff-in-Diff with varying treatment timingI have MSA level data from 1990-2018 where I am looking at professional sports teams and what happen…
Combining 2 ifs and andHi All, I have the following dataset: Code: * Example generated by -dataex-. To install: ssc inst…
Calculate percentage for similar entriesHi all, I have the following table where I want to generate the variable "board_independence". The…
How to obtain goodness of fit statitics after running a biprobit model with svy prefixAre there any ways to obtain goodness of fit statistics after running a biprobit model with svy pref…
Subscribe to:
Post Comments (Atom)
0 Response to Difference of two means significantly different to zero
Post a Comment