On Tue, Mar 12, 2013 at 3:37 AM, Xixi Lin wrote:
> About the code, I have a question, is that only for equal variance
> samples? I tried your code for a test, and here is the result:
>
> . ttest Return if inlist(d_MB,1,10) & Period==120, by(d_MB)
If you have a question about code than the first thing you should do
is look at the help file. Did you look at the help file of -ttest-?
-- Maarten
Ps. this is a hint: the answer is in the help-file of -ttest-.
---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany
http://www.maartenbuis.nl
---------------------------------
*
* 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/