Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: loop for creating my village dummies


From   "fstata@gmail.com" <fstata@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: loop for creating my village dummies
Date   Fri, 16 May 2008 07:39:28 -0700

Hello,

In order to do village fixed effect, I would like to create dummy
variables for each name of villages, I have 124 villages in string
format:
My total number of observations is: 3200

type:  string (str4)
unique values:  124

list vid in 1/5

    +---------+
    |    vid  |
    |---------|
 1. | V001 |
 2. | V001 |
 3. | V001 |
 4. | V001 |
 5. | V001 |
    +---------+

I am not sure how to do it.
Thank you very much in advance
nirina
*
*   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/

_____________________________________________________________________
Mensaje analizado y protegido por Telefonica Empresas
*
*   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/

Privileged, confidential or patient identifiable information may be contained in this message. This information is meant only for the use of the intended recipients. If you are not the intended recipient, or if the message has been addressed to you in error, do not read, disclose, reproduce, distribute, disseminate or otherwise use this transmission. Instead, please notify the sender by reply e-mail, and then destroy all copies of the message and any attachments.

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