Statalist The Stata Listserver


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

Re: st: filling in gaps in data


From   [email protected]
To   [email protected]
Subject   Re: st: filling in gaps in data
Date   Thu, 14 Sep 2006 12:46:48 -0500

sort time
replace ci_ev = ci_ev[_n-1] if ci_ev == 0 in 2/l

Scott

----- Original Message -----
From: David Winter <[email protected]>
Date: Thursday, September 14, 2006 12:24 pm
Subject: st: filling in gaps in data
To: [email protected]

<snip>
> 
> As cumulative incidence is a step function I may want to identify the
> value for CI_EV at, say, time =5, so I want to fill in the gaps 
> with the
> previous known value (so in the above example, the values of CI_EV 
for
> time = 3,4 and 5 would be recoded to 0.00069396).
> 
> Some sort of loop should be in order but I am having problems with 
the
> 'grey matter'.  All assistance would be gratefully received.
> 
> Regards and thanks,
> 
> Dave
>
*
*   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