LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 1999)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 20 Apr 1999 13:34:53 +0100
Reply-To:   Jeremy Miles <j.n.v.miles@DERBY.AC.UK>
Sender:   "SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU>
From:   Jeremy Miles <j.n.v.miles@DERBY.AC.UK>
Subject:   Re: computing age
Comments:   To: Sue O'Donnell <odon0012@TC.UMN.EDU>
In-Reply-To:   <004301be8b2a$574ffde0$ae4cfea9@odon0012>
Content-Type:   text/plain; charset="us-ascii"

At 07:35 20/04/99 -0500, Sue O'Donnell wrote: > Any ideas? Thanks! Susan L. O'Donnell >

To calculate someone's age, we subtract their birth data from the current date. We have to give the current date to SPSS using the date.dmy function.

Use compute to calculate age as being equal to d.o.b - date.dmy(23, 2, 99) [or whatever is today's date].

However, this will give age in seconds (because of the way that SPSS stores time. To calculate age, we must calculate age_in_years = age-in_seconds / (60 * 60 * 24 * 365.25).

===================================================================== Jeremy Miles j.n.v.miles@derby.ac.uk Phone: 01332 622222 x3138 Fax: 01332 622287 Mobile: 07971 218172 Inst. of Behavioural Sciences, Derby University, Derby, DE22 3HL,UK ================ http://ibs.derby.ac.uk/~jeremym ====================


Back to: Top of message | Previous page | Main SPSSX-L page