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

st: RE: summary statistics and re-using results


From   "Stephen P Jenkins" <[email protected]>
To   <[email protected]>
Subject   st: RE: summary statistics and re-using results
Date   Wed, 28 Jan 2004 14:44:52 -0000

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: 28 January 2004 14:38
To: [email protected]
Subject: st: summary statistics and re-using results


Dear Stata-Listers,

I am trying to define income quartiles and then create dummies (for each
quartile).
With the help of the program statsmat I have stored the values for the
borders of the quartiles in a small [1,3]matrix.

But based on this step, how can I construct dummies, i.e. how can I make
Stata compare my income variable to the value in a particular cell of
this matrix ??

( it is the first time I do such a thing and apologize for the
simplicity of my problem)

>>>>>>>>>>>>>
	xtile qinc= income, nq(4)
	ta qinc, ge(q)

Vars q1-q4 are the dummy vbles


Stephen
-------------------------------------------------------------
Professor Stephen P. Jenkins <[email protected]>
Institute for Social and Economic Research
University of Essex, Colchester CO4 3SQ, U.K.
Tel: +44 1206 873374.  Fax: +44 1206 873151.
http://www.iser.essex.ac.uk  

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