From | Clare L Maxwell <[email protected]> |
To | [email protected] |
Subject | Thanks! Re: st: Re: Automating calculating durations frombeginning and end dates |
Date | Wed, 7 Dec 2005 00:31:43 -0600 |
Dear Michael, Thanks! I am very happy to have this solution. At 8:55 PM -0500 12/6/05, Michael Blasnik wrote:
I just got around to implementing Nick Cox's solution to mass producing dates from components this evening. It is the first time I have put together var names from components. I was about to write that I had found a solution along the foreach lines when your letter came. This also works:This is a fairly straightforward job for forval or foreach forval i=1(1)5 { gen cdur0`i'=ce0`i'dt-cb0`i'dt+1 }
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |