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]

Re: st: Expansion for Choice set 0/1


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
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
njcoxstata@gmail.com


On 7 June 2013 16:31, Ferro,Gabrielle A <gferro@ufl.edu> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index