At 05:43 AM 2/7/2011, ami wrote:
>I have two sets date data in spss for windows. I want to compute the
>duration between the first data and the second data. For example the
>first data contains 2 feb 2011 and the second data - 7 Feb 2011.
>[The duration is] 5 days. Is there possibility to operate this by
>spss for window?
At 09:22 AM 2/7/2011, Bruce Weaver wrote:
>Look up the DATEDIFF function in the Help.
The DATEDIFF function is exactly right, but to use it, the first and
second values (a) must both be stored in SPSS as SPSS date values,
and (b) must both be in the same record, and (c) you have to know how
to compute new values from existing values in SPSS.
If your data are stored that way, and you know how to compute new
values, fine. If not, or IF THE PARAGRAPH ABOVE DOESN'T MAKE SENSE to
you, tell us what form your data are in now.
-Best wishes,
Richard Ristow
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD