| ![]() |
From | "Michael Blasnik" <michael.blasnik@verizon.net> |
To | <statalist@hsphsun2.harvard.edu> |
Subject | st: Re: Accumulastion Order |
Date | Fri, 16 Mar 2007 13:28:46 -0400 |
<snip>I have variable A with the given observations and I would like to create code to get variable Accum.I tried local i = 1 while `i'<= _N { local e = 1 while `e'<= _N { local u = p[`i'] + p[`i'-1] replace c = `u' in `e' local e = `e'+1 local i = `i'+1 } } but it does not work, A Accum 1 1 3 4 0 4
© Copyright 1996–2025 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |