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: Expansion for Choice set 0/1


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: Expansion for Choice set 0/1
Date   Fri, 7 Jun 2013 16:36:09 +0100

Did you look at the commands

-fillin-

and

-expand-

?

Nick
[email protected]


On 7 June 2013 16:31, Ferro,Gabrielle A <[email protected]> wrote:
>
> I have a data set that includes current place of residence and place of residence 1 year prior.  I am looking to expand the data set so that each observation becomes 48 observations where for each new observation, the individual has the "choice" to migrate to each of the 48 contiguous states.  I would like to create a 0/1 for each state to show that they moved there or did not.  In addition I need to be able to find the difference in several state-level variables between the state they moved to (or had the option to move to) and the state 1 year prior.  I am looking for the most efficient way to do this.  Thank you for your help.
>
> _____________________________________________________________________________________________________________________
>
> Gabrielle Ferro
> Graduate Student
> Food and Resource Economics
> University of Florida
> *
> *   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/

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


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