Руководство Пользователя для spss spss 13

Скачать
Страница из 255
196
Chapter 9
The introduction screen of the Date and Time Wizard presents you with a set of
general tasks. Tasks that do not apply to the current data are disabled. For instance,
the data file upgrade.sav doesn’t contain any string variables so the task to create a
date variable from a string is disabled.
If you’re new to dates and times in SPSS you can select
Learn how dates and
times are represented in SPSS
and click
Next
. This leads to a screen that provides a
brief overview of date/time variables, and a link, through the Help button, to more
detailed information.
Calculating the Length of Time Between Two Dates
One of the most common tasks involving dates is calculating the length of time
between two dates. As an example, consider a software company interested in
analyzing purchases of upgrade licenses by determining the number of years since
each customer last purchased an upgrade. The data file upgrade.sav contains a
variable for the date on which each customer last purchased an upgrade, but not the
number of years since that purchase. A new variable that is the length of time, in
years, between the date of the last upgrade and the date of the next product release
will provide a measure of this quantity.
To calculate the length of time between two dates:
E
Select
Calculate with dates and times
on the introduction screen of the Date and Time
Wizard and click
Next
.