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

Re: st: Replacing current period values with the values of previous periods


From   "Panos Sousounis" <[email protected]>
To   <[email protected]>
Subject   Re: st: Replacing current period values with the values of previous periods
Date   Mon, 19 Dec 2005 15:00:38 -0000

Dear all,
in a panel data context, is there a way of replacing the value of a variable
in period t with the value of the variable in previous periods (t-1,
t-2...etc)? I have a situation where the item is recorded as missing  if the
status of the respondent has not changed since first asked. I need a way of
the variable in the current period to take the last valid (non missing)
value of the previous time periods.
Any help would be greatly appreciated.

Panos


*
*   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