On this information, you want a t-test. See the help for -ttest-.
Nick
njcoxstata@gmail.com
On 8 April 2013 11:20, Mash Hamid <MXH191@bham.ac.uk> wrote:
> How do I compare a mean score of one variable across another another?
>
> I have just generated a mean score of a 4 nut foods using egen command and generated "nuts" and then I want to compare the score of nuts across another variable called "diet1", which is a continuous score. Which stata command would I write to obtain that?
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/