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
Importing .shp file to Stata with "long" varnameHello, I am trying to import a .shp shapefile containing English local authorities into Stata using…
How can I specify duplicated cases between two groups? id DOB year 1 901020 2014 2 981020 2014 3 841028 2014 4 790707 2014 5 800301 2014 6 9…
Margins after cmroprobitHello I have a dataset which looks as follows (the below is just an excerpt): caseid 7 7 7 7 8 8 …
from Stata IC to SEHi, currently my Stata version is IC. But it seems IC cannot deal with my large data set. When I run…
Ytitle positionI want to reposition the title of the Y axis to where the red line I marked in the attached screensh…
Subscribe to:
Post Comments (Atom)
0 Response to Difference of two means significantly different to zero
Post a Comment