![]() |
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: Simple Question -summarize- does not work.
From
"Patrick Musonda" <pmuzho@hotmail.com>
To
statalist@hsphsun2.harvard.edu
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: tiago.pereira@incor.usp.br
Reply-To: statalist@hsphsun2.harvard.edu
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/
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–2023 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |