Statalist


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

st: loop for creating my village dummies


From   "Nirina F" <[email protected]>
To   [email protected]
Subject   st: loop for creating my village dummies
Date   Wed, 14 May 2008 13:45:50 -0400

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index