Hi
I am totally new to Stata (using Stata 16.1) and am grateful for any advice you can offer. I am getting more confident in running statistical analysis but still have a lot to learn in terms of presenting data.
I want to produce a graph that shows the rate of cooperation in an economic game as between two conditions, along with error bars. The rate of cooperation is a percentage amount and, as my data contains binary values (either the participant cooperated with their counterpart, or did not cooperate), I have calculated it using a formula. This is a summary of the relevant results:
I have used the following command to give me a quick summary of the data:
twoway bar rate condition, xlabel(0 1, noticks valuelabel) ylabel(0 "0" .2 "20" .4 "40" .6 "60" .8 "80" 1.0 "100") ytitle(Rate of cooperation (%))
But I am really struggling to develop out the basic graph. I appreciate that this is a summary data set rather than the full data set and so I am probably doing something wrong just by using this but I am not sure how my main data set will help as it is just binary responses across two conditions. I have looked into cibar, along with posts on Statalist too.
I also know that people have reservations about using bar plots and I would be happy to take any suggestions about how you might display this data in a more transparent manner.
Best wishes
I am totally new to Stata (using Stata 16.1) and am grateful for any advice you can offer. I am getting more confident in running statistical analysis but still have a lot to learn in terms of presenting data.
I want to produce a graph that shows the rate of cooperation in an economic game as between two conditions, along with error bars. The rate of cooperation is a percentage amount and, as my data contains binary values (either the participant cooperated with their counterpart, or did not cooperate), I have calculated it using a formula. This is a summary of the relevant results:
Code:
clear input byte condition float rate int(count n) float error 0 .5762082 155 269 .030129 1 .4185185 113 270 .030022 end
twoway bar rate condition, xlabel(0 1, noticks valuelabel) ylabel(0 "0" .2 "20" .4 "40" .6 "60" .8 "80" 1.0 "100") ytitle(Rate of cooperation (%))
But I am really struggling to develop out the basic graph. I appreciate that this is a summary data set rather than the full data set and so I am probably doing something wrong just by using this but I am not sure how my main data set will help as it is just binary responses across two conditions. I have looked into cibar, along with posts on Statalist too.
I also know that people have reservations about using bar plots and I would be happy to take any suggestions about how you might display this data in a more transparent manner.
Best wishes
Comment