Correct. Thanks for the fix.
Nick
[email protected]
Scott Merryman
> (Also, in the second approach, I believe the -foreach-
> statement would need
> to be written as: foreach y of num 1983 1986 1989 1990 1993
> 1994 1997 1998
> 2001/2004 { )
Nick Cox
> > (2) change of data shape.
> >
> > (a) -reshape-
> > (b) new variables
> > (c) -reshape- back
> >
> > egen id=group(county fip)
> > reshape wide vbl, i(id) j(year)
> > foreach y of num 1983 1986 1989 1990 1993 1994 1997 1998 2001-2004 {
> > gen vbl`y' = .
> > }
> > reshape long vbl, i(id) j(year)
> > drop id
*
* 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/