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: generating variable with condition on same variable
From
Prakash Singh <[email protected]>
To
statalist <[email protected]>
Subject
st: generating variable with condition on same variable
Date
Fri, 27 Dec 2013 09:52:31 +0530
Hello,
I need help in generating a variable based on following condition
I have one data file at household level where the variable itemcode
indicates type of pump household own. I want to see how may of the
households who have diesel pump also own any other type of pump. For
example a new variable can be created where if the farm (diesel pump
owner) have one electric pump or one tube well.
Many thanks in advance
Regards
Prakash
*
* 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/