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

From |
David Airey <david.airey@vanderbilt.edu> |

To |
statalist@hsphsun2.harvard.edu |

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

Date |
Mon, 8 Dec 2008 20:50:10 -0600 |

webuse fuel, clear list, clean ttest mpg1 == mpg2 local t = r(t) generate subject = _n list, clean reshape long mpg, i(subject) j(repeat) list, clean anova mpg repeat subject anova, regress test repeat local F = r(F) display `F' "=" `t'^2 xi: regress mpg i.repeat i.subject On Dec 8, 2008, at 7:05 PM, josemaria wrote:

Dear Statalisters:I am not sure whether it makes sense or not, but is there a sort of -regress- command that allows to conduct a pair-matched -ttest-, butwith other independent variables?I tried using -xtmixed-, but the result is not the same. A contrived data set could be: matching_identification outcome ocasion variable_not_matched 1 1 1 0 1 2 2 0 2 3 1 0 2 5 2 1 3 2 1 0 3 4 2 1 4 6 1 1 4 5 2 1To perform the pair-matched ttest it is necessary to -reshape- andto use -ttest outcome1==outcome2-, losing the independentvariable_not_matched.Thank for any orientation. Regards, 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 * * 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/

* * 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/

**Follow-Ups**:**Re: st: is there a -regress- command equivalent to the pair matched ttest?***From:*"josemaria" <jmpsouza@usp.br>

**Re: st: is there a -regress- command equivalent to the pair matched ttest?***From:*"Sam Norton" <samjnorton@googlemail.com>

**References**:**st: new package -byhist- on SSC***From:*"Austin Nichols" <austinnichols@gmail.com>

**st: is there a -regress- command equivalent to the pair matched ttest?***From:*"josemaria" <jmpsouza@usp.br>

- Prev by Date:
**Re: st: is there a -regress- command equivalent to the pair matched ttest?** - Next by Date:
**st: Discrete time duration model with heterogeneity: xtcloglog and pgmhaz** - Previous by thread:
**Re: st: is there a -regress- command equivalent to the pair matched ttest?** - Next by thread:
**Re: st: is there a -regress- command equivalent to the pair matched ttest?** - Index(es):

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