Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: is there a -regress- command equivalent to the pair matched ttest?


From   "josemaria" <jmpsouza@usp.br>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: is there a -regress- command equivalent to the pair matched ttest?
Date   Tue, 9 Dec 2008 13:47:51 -0200

Dears Dave, Sam and Rich:

thank you very very much.
Thanks also for the orientation to go for http://www.ats.ucla.edu/stat/stata/faq/xtmixed.htm.

For the basics, may I understand that the trick is to use both the repetition_ocasions and the subject_identification as categorical variables?
Greetings,
José Maria

Jose Maria Pacheco de Souza, Professor Titular (aposentado)
Departamento de Epidemiologia/Faculdade de Saude Publica, USP
Av. Dr. Arnaldo, 715
01246-904  -  S. Paulo/SP - Brasil
fones (11)3061-7747; (11)3768-8612
fax (11)3714-2403
www.fsp.usp.br/~jmpsouza
----- Original Message ----- From: "David Airey" <david.airey@vanderbilt.edu>
To: <statalist@hsphsun2.harvard.edu>
Sent: Tuesday, December 09, 2008 12:50 AM
Subject: Re: st: is there a -regress- command equivalent to the pair matched ttest?


A paired ttest is equivalent to a repeated measures ANOVA with two levels to the repeated factor. You can see the regression equivalent below.

webuse fuel, clear
.....
xi: regress mpg i.repeat i.subject


On Dec 8, 2008, at 7:05 PM, josemaria wrote:

is there a sort of -
regress- command that allows to conduct a pair-matched -ttest-, but

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index