Statalist The Stata Listserver


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

Re: st: RE: constructing an unbalanced panel data set based on existing


From   David Kantor <kantor.d@att.net>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: constructing an unbalanced panel data set based on existing
Date   Wed, 29 Mar 2006 11:56:17 -0500

At 11:29 AM 3/29/2006, Nick wrote:
This example affords amusement at various levels.

First, only earlier today I posted

gen length = end - beg + 1
expand length
bysort Persnr beg: gen month = beg[1] + _n - 1
drop length

as an answer to a question to Anna Manzoni. In
its main feature, this is the same problem,
but no one seemed to notice.
[...]
I did notice, but didn't jump in at the time. But it was very obvious. I also noticed because I had a very similar problem recently; and I used -expand- as well.

--David

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