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

From |
"Bastian Steingros" <Steingros@gmx.de> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: RE: st: significance of mean and median |

Date |
Wed, 26 Nov 2008 15:08:24 +0100 |

Hi, using sysuse auto, clear reg mpg, nohe mean mpg ttest mpg==0 displays the same results. However, how do these tests deal with the assumption, that mpg has to normal distributed? More precisely , how important is the fact that mpg is normal distributed? Most of the variables in my sample are left or right skewed... Is ttest also in this case reliable it? by the way, median mpg require a option. So, how can I test if the median of a var. is significant without using this command? Because I have no idea which by-option would make sense in my sample. Nick Cox seems not to be fully agreed with LAD/qreg... b -------- Original-Nachricht -------- > Datum: Tue, 25 Nov 2008 11:28:23 +0100 > Von: "Martin Weiss" <martin.weiss1@gmx.de> > An: statalist@hsphsun2.harvard.edu > Betreff: RE: st: significance of mean and median > Line for the server... > > > Agreed! But what is the beauty of your solution compared with the -mean- > command that was offered as a solution to Bastian`s problem in this > thread? > They obviously give the same result... > > ******** > sysuse auto, clear > reg mpg, nohe > mean mpg > ******** > > HTH > Martin > > > -----Original Message----- > From: owner-statalist@hsphsun2.harvard.edu > [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Ronan Conroy > Sent: Tuesday, November 25, 2008 11:22 AM > To: statalist@hsphsun2.harvard.edu > Subject: Re: st: significance of mean and median > > On 24 Nov 2008, at 11:55, Bastian Steingros wrote: > > > After creating the descriptive statistics of my sample I want to > > show that the mean of a certain variable is statistically significant. > > For example the mean of var1 is 0,45. Now I want to show that the > > positive sign is significant. > > A regression without any predictor variable is a constant-only model, > and the test for significance of the constant is a test that the > constant is zero. > > . sysuse auto > (1978 Automobile Data) > > . regress mpg > > Source | SS df MS Number of obs > = 74 > -------------+------------------------------ F( 0, 73) > = 0.00 > Model | 0 0 . Prob > F > = . > Residual | 2443.45946 73 33.4720474 R-squared > = 0.0000 > -------------+------------------------------ Adj R-squared > = 0.0000 > Total | 2443.45946 73 33.4720474 Root MSE > = 5.7855 > > ---------------------------------------------------------------------------- > -- > mpg | Coef. Std. Err. t P>|t| [95% Conf. > Interval] > ------------- > +---------------------------------------------------------------- > _cons | 21.2973 .6725511 31.67 0.000 19.9569 > 22.63769 > ---------------------------------------------------------------------------- > -- > > The coefficient for the constant is the mean of the data (since the > mean is the statistic that minimises prediction error, when we define > prediction error as the squared difference between observed and > expected). > > Similarly, quantile regression will test that the median is zero > > . qreg mpg > Iteration 1: WLS sum of weighted deviations = 330.13202 > > Iteration 1: sum of abs. weighted deviations = 330 > Iteration 2: sum of abs. weighted deviations = 328 > > Median regression Number of obs > = 74 > Raw sum of deviations 328 (about 20) > Min sum of deviations 328 Pseudo R2 > = 0.0000 > > ---------------------------------------------------------------------------- > -- > mpg | Coef. Std. Err. t P>|t| [95% Conf. > Interval] > ------------- > +---------------------------------------------------------------- > _cons | 20 .7799751 25.64 0.000 18.44551 > 21.55449 > ---------------------------------------------------------------------------- > -- > > the median being the statistic which minimises error, when we define > error as the absolute difference between the observed and expected. > > > > Ronan Conroy > ================================= > > rconroy@rcsi.ie > Royal College of Surgeons in Ireland > Epidemiology Department, > Beaux Lane House, Dublin 2, Ireland > +353 (0)1 402 2431 > +353 (0)87 799 97 95 > +353 (0)1 402 2764 (Fax - remember them?) > http://rcsi.academia.edu/RonanConroy > > P Before printing, think about the environment > > > > > * > * 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/ -- Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a * * 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: RE: st: significance of mean and median***From:*Maarten buis <maartenbuis@yahoo.co.uk>

**References**:**st: significance of mean and median***From:*"Bastian Steingros" <Steingros@gmx.de>

**Re: st: significance of mean and median***From:*Ronan Conroy <rconroy@rcsi.ie>

**RE: st: significance of mean and median***From:*"Martin Weiss" <martin.weiss1@gmx.de>

- Prev by Date:
**RE: st: RE: egen & sum()** - Next by Date:
**Re: st: STATA cannot read a vlue of dataXY=.z_** - Previous by thread:
**RE: st: significance of mean and median** - Next by thread:
**Re: RE: st: significance of mean and median** - Index(es):

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