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

Re: st: RE: The last four digits

From   David Kantor <[email protected]>
To   [email protected]
Subject   Re: st: RE: The last four digits
Date   Tue, 09 Dec 2003 08:47:39 -0500

Ernest Berkhout suggested this in response to the reply by Daniel R Sabath to the question by Juesta:

At 10:58 AM 12/9/2003 +0100, you wrote:

gen date = int(nacimi/10000)
gen year = mod(nacimi/10000)
I believe that you meant, for the second line,
 gen year = mod(nacimi, 10000)

-- David

David Kantor
Institute for Policy Studies
Johns Hopkins University
[email protected]

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index