Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: RE: command stata


From   "Sarah Edgington" <sedging@ucla.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: command stata
Date   Thu, 25 Aug 2011 17:08:08 -0700

Donsaane,
You're unlikely to get much useful advice without more information about
what the variables you currently have look like and what you want the
variable you're creating to look like.  Let's assume for a moment that you
have binary indicators that are 1 if a locality has "good" infrastructure in
a given category and you want to count how many categories of good
infrastructure the locality has.  Then you would simply add the indicator
variables together.  However, I suspect you are looking to do something much
more complicated.  Unless you give us some clue about what you have and what
you hope to end up with, we will simply be guessing wildly.

Please consult the statalist FAQ for advice on how to submit questions that
are more likely to get useful answers.
http://www.stata.com/support/statalist/faq

-Sarah

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Donsaane Dontsi
Saatena
Sent: Thursday, August 25, 2011 4:52 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: command stata

Hi,

I am looking for stata's command in order to group many variables into one.
Let's say we have: roads, water , electricity, and we want to group them
into one variable: infrastructures.
could someone help me with the command?

thanks

Donsaane

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

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index