Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: table with nested categories


From   Nada Wasi <[email protected]>
To   [email protected]
Subject   Re: st: table with nested categories
Date   Sat, 13 Sep 2003 11:41:09 -0700 (PDT)

how about this?
-construct the new variable,Y, to separate X into
groups:
gen Y = 1 if X>0
replace Y = 2 if X>5
replace Y = 3 if X>10
:
(you could label Y if you want).
-then, use the command "table" 
table Y, c(mean Y,...)

Date: Fri, 12 Sep 2003 16:45:55 -0400
From: [email protected]
Subject: st: table with nested categories

   I want to get a one-way table of statistics of a
variable X, where X 
is decomposed by nested inequalities, such as:

X>0
X>5
X>10
 etc.

Is there a simple command/option for this in Stata?


thanks,
Al


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.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