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/