Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: tsset - repeated time values within panel


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: tsset - repeated time values within panel
Date   Wed, 30 Mar 2011 11:23:51 +0100

Those can't be fixed with L. -- see

FAQ     . . . . . . . . . . . . . . . . . . . . . . . Replacing missing values
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  N. J. Cox
        2/03    How can I replace missing values with previous or
                following nonmissing values?
                http://www.stata.com/support/faqs/data/missing.html


On Wed, Mar 30, 2011 at 11:18 AM, emanuele mazzini
<[email protected]> wrote:
> Sorry for the wrong sending. I know what you mean, but I need to
> replace missing values. I can be
> more precise with the following example:
>
> group   year      pairid
> 1         2002         .
> 1         2003        2
> 1         2004        2
> 2         2002        .
> 2         2003        3
> 2         2004        3
>
> and I need to replace the missing values for pairid, which are
> obviously the same for the previous years for which data are missing.
> Hope this helps,
> Thank you.
>
>
>
>>
>> 2011/3/30 Nick Cox <[email protected]>:
>>> There is a difference between filling in gaps and replacing missing
>>> values. Evidently you have gaps but no missing values.
>>>
>>> If my data run
>>>
>>> group  year
>>> 1        2007
>>> 1        2008
>>> 1        2009
>>> 2        2007
>>> 2        2009
>>>
>>> I have a gap for group 2 and year 2008. That is not a missing value.
>>> You can use -tsfill- to fill in gaps but it won't add any information
>>> to your data.
>>>
>>> Conversely this is an example of a missing value
>>>
>>> group year  Stata_users
>>> 2      2007    4000000
>>> 2      2008       .
>>> 2      2009    5000000
>>>
>>> Nick
>>>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index