I'm very new to SPSS for excuse the fact that this is probably basic stuff..
I'm working with data from a large survey of over 2,000 participants (I didn't carry it out, I'm just using the data). The survey didn't ask people what age they were, just their day/month/year of birth. Question - how do I create a cohort age variable with those dates? I assume you use a formula with the DOB and the date the surveys were carried out? Help!! :(
I'm
do you mean a variable like 18-24, 25-34 etc?
only way I know is to do it manually - or work out the equations you need and do it in excel.
Or you can change the variable type into date - but not sure that you will be able to use it in analysis or not.
Hey MissGeography,
I think I understand your problem - I had a similar one not so long ago with psychometric data. You've managed to get all the participants dob but now need to use this to calculate each person's age?
If so this is the site I used to figure it out: http://support.spss.com/student/Troubleshooting/stuResSearchDetail.asp?ID=17889
Basically you use the compute function to compute the current date COMPUTE TODAY=XDATE.DATE($TIME). then use the current date to compute the age COMPUTE AGE=(CTIME.DAYS(TODAY-BDATE))/365.25. then you need to use another formula to change the format of the age to what you want (i.e. age years not to many decimal places etc).
Anyway the website explains exactly how to do it - even how to use the compute function. Let me know if you have any specific questions or get stuck.
Hope that helps :-)
Yip, that's what I mean - creating age cohorts (e.g. 25-30, etc.) from DOB. Will try those solutions.. thanks guys :)
PostgraduateForum Is a trading name of FindAUniversity Ltd
FindAUniversity Ltd, 77 Sidney St, Sheffield, S1 4RG, UK. Tel +44 (0) 114 268 4940 Fax: +44 (0) 114 268 5766
An active and supportive community.
Support and advice from your peers.
Your postgraduate questions answered.
Use your experience to help others.
Enter your email address below to get started with your forum account
Enter your username below to login to your account
An email has been sent to your email account along with instructions on how to reset your password. If you do not recieve your email, or have any futher problems accessing your account, then please contact our customer support.
or continue as guest
To ensure all features on our website work properly, your computer, tablet or mobile needs to accept cookies. Our cookies don’t store your personal information, but provide us with anonymous information about use of the website and help us recognise you so we can offer you services more relevant to you. For more information please read our privacy policy
Agree Agree