Statalist


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

RE: st: Simple Question -summarize- does not work.


From   "Patrick Musonda" <[email protected]>
To   [email protected]
Subject   RE: st: Simple Question -summarize- does not work.
Date   Sun, 09 Sep 2007 19:57:29 +0000

Using the float command may work for your problem, also the command below, except that it will give you for the other values ase well.

Hope this helps,

Patrick.

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

bysor scenario: summ if scenario==1.2


From: [email protected]
Reply-To: [email protected]
To: [email protected]
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/
_________________________________________________________________
Got a favourite clothes shop, bar or restaurant? Share your local knowledge http://www.backofmyhand.com

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