Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

R�p. : RE: st: Comparing means and medians


From   "Herve STOLOWY" <[email protected]>
To   <[email protected]>
Subject   R�p. : RE: st: Comparing means and medians
Date   Tue, 02 Jan 2007 09:12:48 +0100

Dear Claude:

You could have the following syntax:

t test

ttest compensation, by(pw)

Mann-Whitney U test

ranksum compensation, by(pw)

chi2 for dichotomic variables

tabulate pw boardcomp, chi2 
(I assume that boardcomp is a dichotmic variable).

I hope this helps.

Tr�s bonne ann�e � toi et tes proches.

Amicalement

Herv�



***********************************************************
Professeur/Professor
HEC Paris
D�partement Comptabilit� Contr�le de gestion / Dept of Accounting and Management Control
1, rue de la Liberation
78351 - Jouy-en-Josas
France
Tel: +33 1 39 67 94 42 - Fax: +33 1 39 67 70 86
mail: stolowy at hec dot fr
web: http://studies.hec.fr/web/stolowy
>>> [email protected] 29/12/06 15:43 >>>
Claude might also like to type

ssc desc somersd

which describes the somersd package, which has a module -cendif- for
calculating confidence intervals for median differences, and a module
-somersd- for calculating differences between 2 binary probabilities
(optionally using the Normalizing z-transformation). To install the
-somersd- package, type

ssc install somersd

You may then need to exit Stata and launch Stata again before -somersd-
can work, at least in some versions of Stata 9.

I hope this helps.

Best wishes

Roger 


Roger Newson
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected] 
www.imperial.ac.uk/nhli/r.newson/

Opinions expressed are those of the author, not of the institution.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Michael S.
Hanson
Sent: 27 December 2006 00:20
To: [email protected]
Subject: Re: st: Comparing means and medians

On Dec 26, 2006, at 5:07 PM, Claude Francoeur wrote:

> I would like to make a test of equality (compare means and medians for
> continuous variables) for the above variables for two sub samples (pw 
> = 0
> and pw = 1)
>
> I would like to generate the mean (t test) and median tests 
> (Mann-Whitney,
> Wilcoxon) to verify if the groups are significantly different.
>
> I also need to make chi-squared tests for the dichotomic variables.

	Try using the -findit- command.  For example:

findit t test
findit equality test
findit median test
findit wilcoxon

etc.  Hope this helps.

                                         -- Mike

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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