Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: How to subdivide a variable


From   Asad Mushtaq <[email protected]>
To   [email protected]
Subject   st: How to subdivide a variable
Date   Tue, 10 Sep 2013 13:37:30 +0500

Hi all,
hope you all are fine. I have a variable named income. its minimum
value is 10k and maximum 100k. now i want to subdivide this income
variable so that inc1 = 10k-20k, inc2=20k-40k, inc3=40-70k and
inc4=>70k.  when i use egen command (egen incomecut=(cut income) at
(20,40,70) etc, though it divide the variable, but i dont know how to
use only a specific range to use in regression. for example what
should i do if i want to check the effect of only income range 10k-20k
in my model. Thanks
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index