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]

Re: st: Some basic help on programming


From   Maarten Buis <[email protected]>
To   [email protected]
Subject   Re: st: Some basic help on programming
Date   Tue, 10 Apr 2012 10:02:42 +0200

Sounds like you are trying to change your data from long to wide
format. If that is the case, than -reshape- should be very useful, see
-help reshape-.

Hope this helps,
Maarten

On Tue, Apr 10, 2012 at 9:09 AM, Prakash Singh wrote:
> Dear all
> I am having access to stata 10 and working with National Sample Survey
> Organisation (India) data. In this data set I have level wise data and
> within each level there are item codes. Now I have to break the level
> data at item wise and then merge it to have information for all the
> required variable.
>
> I can use do file and repeat "keep if" command but would like to ask
> is there any other way to do this boring job as I have to do this for
> different levels.
>
> For convenience I am giving sample of the do file
>
> use "level3_list.dta", clear
> keep if item_code==309
> ren item_code item_code_manu
> ren asicc_code asicc_code_manu
> ren unit_quantity unit_quantity_manu
> ren quantity quantity_manu
> ren value value_manu
> sort common_id
> save "item309.dta",replace
>
> like wise for different item codes
>
> Thanks
> Prakash
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/



-- 
--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany


http://www.maartenbuis.nl
--------------------------

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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