Statalist


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

st: Simple Question -summarize- does not work.


From   tiago.pereira@incor.usp.br
To   statalist@hsphsun2.harvard.edu
Subject   st: Simple Question -summarize- does not work.
Date   Sat, 8 Sep 2007 18:34:53 -0300 (BRT)

Dear all,

I am trying to figure out why the -summarize- command does not work with a
variable that defines groups in a quite simple dataset [please see below].

I will be grateful for any help.

Best regards,

Tiago

---------------------------

input mean scenario
1.556484 1.0
1.224059 1.1
1.222514 1.2
1.436024 1.3
1.371803 1.4
1.521317 1.5
1.25691  1.0
.959466  1.1
1.207748 1.2
1.260023 1.3
.9168621 1.4
1.378405 1.5
1.069419 1.0
.9594604 1.1
1.171241 1.2
1.128054 1.3
1.186087 1.4
1.295953 1.5
end


. summarize mean if scenario==1.2

    Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
        mean |         0

 summarize mean if scenario==1.3

    Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
        mean |         0

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index