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 <dkantor@jhu.edu>
To   statalist@hsphsun2.harvard.edu
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
dkantor@jhu.edu
410-516-5404

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index