Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: filling in a panel


From   "Scott Merryman" <smerryman@kc.rr.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: filling in a panel
Date   Sun, 9 Oct 2005 18:06:04 -0500

-xfill- by Tony Brady of Sealed Envelope may be helpful.

See the example at:
http://www.sealedenvelope.com/stata_xfi.php

Hope this helps,
Scott


> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] On Behalf Of Alexander Nervedi
> Sent: Friday, October 07, 2005 12:44 PM
> To: statalist@hsphsun2.harvard.edu
> Subject: st: filling in a panel
> 
> Hi guys,
> 
> 
> So i have this survey data that is not balanced and i have defined as a
> panel using
> 
> . tsset id time
> 
> the problem is that there are like 5 or 6 other variables that are key
> identifiers that need to be used in other parts of the analysis such as
> seasons, housecodes, etc. The missingness for the numeric variables I
> managed to fix using the lead and foreward time series operators.
> 
> what i cant fix is the alphanumeric housecode the lead/foreward operators
> dont seem to like. I keep getting a type mismatch error when i do
> 
> replace hcode = L1.hcode if time > 1 & time < 4 /*there are 3 time
> periods*/
> 
> I was wondering if there is any cool way of filling in the grid for string
> type variables in this kind of a setting.
> 
> mucho gusto,
> Alnerdy
> 
> _________________________________________________________________
> Don't just search. Find. Check out the new MSN Search!
> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> 
> *
> *   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/


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