From | Nick Winter <[email protected]> |
To | [email protected], [email protected] |
Subject | Re: st: Year to start 1st April |
Date | Sun, 07 Mar 2004 15:46:14 -0500 |
At 11:20 PM 3/5/2004 -0500, Richard Williams wrote:
Whoops. I think the original solution I posted quickly gets off a day. I think it is fixable, but how about this instead:Just a quick note to note, as it were, that this approach can be done in one line:
. gen finyear = year(datevisit)
. replace finyear = finyear - 1 if month(datevisit) < 4
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |