Statalist The Stata Listserver


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

st: Re: Data Manipulation--is the merge command appropriate?


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   st: Re: Data Manipulation--is the merge command appropriate?
Date   Mon, 25 Sep 2006 11:53:13 -0400

-fillin- does what you want (when followed by replace X=0 if _fillin==1)

Michael Blasnik

p.s. I'm not sure what you meant when you stated that the merge "did not work" (see statalist faq for why that's a no-no). I think the merge route would also work but fillin is better designed for this task.


----- Original Message ----- From: "Asiedu, Elizabeth" <[email protected]>
To: <[email protected]>
Sent: Monday, September 25, 2006 11:12 AM
Subject: st: Data Manipulation--is the merge command appropriate?



I have an unbalanced panel dataset. I'd like to convert to a balanced panel dataset where the data for the missing years are zero. How do I do this in Stata? I'll use an example to illustrate my problem.
<snip>
*
* 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