Date wizard

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Date wizard

Chelminski, Iwona
Hi Group,

I want to divide my sample into 4 groups, depending on when they came into
the office ("date_1" is the name of my date variable). What's wrong with
this syntax?
I'm sure the date variable is  presented in some other way--please help.

Thanks in advance,
Iwona

compute season=0.
if ((date_1 GE 03/01/04) and (date_1 LE 05/31/04)) or ((date_1 GE 03/01/05)
and (date_1 LE 05/31/05)) season=1.
if ((date_1 GE 06/01/04) and (date_1 LE 08/31/04)) or ((date_1 GE 06/01/05)
and (date_1 LE 08/31/05)) season=2.
if (date_1 GE 09/01/04) and (date_1 LE 11/30/04) season=3.
if (date_1 GE 12/01/04) and (date_1 LE 02/29/05) season=4.
value labels season 0 'missing' 1 'spring' 2 'summer' 3 'fall' 4 ' winter'.
Reply | Threaded
Open this post in threaded view
|

Re: Date wizard

Edward Boadi
Hi Iwona,
The first and subsequent 'IF' statements should read :

if ((date_1 GE DATE.MDY(03,01,2004)) and (date_1 LE DATE.MDY(05,31,2004)) )
or ((date_1 GE DATE.MDY(03,01,2005) )
and (date_1 LE DATE.MDY(05,31,2005)) ) season=1.

Regards.
Edward.


DATE.MDY(7,1,2005).
-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]]On Behalf Of
Chelminski, Iwona
Sent: Wednesday, November 15, 2006 2:33 PM
To: [hidden email]
Subject: Date wizard


Hi Group,

I want to divide my sample into 4 groups, depending on when they came into
the office ("date_1" is the name of my date variable). What's wrong with
this syntax?
I'm sure the date variable is  presented in some other way--please help.

Thanks in advance,
Iwona

compute season=0.
if ((date_1 GE 03/01/04) and (date_1 LE 05/31/04)) or ((date_1 GE 03/01/05)
and (date_1 LE 05/31/05)) season=1.
if ((date_1 GE 06/01/04) and (date_1 LE 08/31/04)) or ((date_1 GE 06/01/05)
and (date_1 LE 08/31/05)) season=2.
if (date_1 GE 09/01/04) and (date_1 LE 11/30/04) season=3.
if (date_1 GE 12/01/04) and (date_1 LE 02/29/05) season=4.
value labels season 0 'missing' 1 'spring' 2 'summer' 3 'fall' 4 ' winter'.
Reply | Threaded
Open this post in threaded view
|

Re: Date wizard

Melissa Ives
In reply to this post by Chelminski, Iwona
You also ignore year, shorten the logic and use:
if (xdate.month(date_1) GE 03 and xdate.month(date_1)LE 05) season=1.
if (xdate.month(date_1) GE 06 and xdate.month(date_1)LE 08) season=2.
if (xdate.month(date_1) GE 09 and xdate.month(date_1)LE 11) season=3.
if (xdate.month(date_1) GE 12 or xdate.month(date_1)LE 02) season=4.

NOTE: you need to change season 4 from 'and' to 'or' since it is the
beginning or end of the month count.

Melissa

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Edward Boadi
Sent: Wednesday, November 15, 2006 1:41 PM
To: [hidden email]
Subject: Re: [SPSSX-L] Date wizard

Hi Iwona,
The first and subsequent 'IF' statements should read :

if ((date_1 GE DATE.MDY(03,01,2004)) and (date_1 LE
DATE.MDY(05,31,2004)) ) or ((date_1 GE DATE.MDY(03,01,2005) ) and
(date_1 LE DATE.MDY(05,31,2005)) ) season=1.

Regards.
Edward.


DATE.MDY(7,1,2005).
-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]]On Behalf Of
Chelminski, Iwona
Sent: Wednesday, November 15, 2006 2:33 PM
To: [hidden email]
Subject: Date wizard


Hi Group,

I want to divide my sample into 4 groups, depending on when they came
into the office ("date_1" is the name of my date variable). What's wrong
with this syntax?
I'm sure the date variable is  presented in some other way--please help.

Thanks in advance,
Iwona

compute season=0.
if ((date_1 GE 03/01/04) and (date_1 LE 05/31/04)) or ((date_1 GE
03/01/05) and (date_1 LE 05/31/05)) season=1.
if ((date_1 GE 06/01/04) and (date_1 LE 08/31/04)) or ((date_1 GE
06/01/05) and (date_1 LE 08/31/05)) season=2.
if (date_1 GE 09/01/04) and (date_1 LE 11/30/04) season=3.
if (date_1 GE 12/01/04) and (date_1 LE 02/29/05) season=4.
value labels season 0 'missing' 1 'spring' 2 'summer' 3 'fall' 4 '
winter'.



PRIVILEGED AND CONFIDENTIAL INFORMATION
This transmittal and any attachments may contain PRIVILEGED AND
CONFIDENTIAL information and is intended only for the use of the
addressee. If you are not the designated recipient, or an employee
or agent authorized to deliver such transmittals to the designated
recipient, you are hereby notified that any dissemination,
copying or publication of this transmittal is strictly prohibited. If
you have received this transmittal in error, please notify us
immediately by replying to the sender and delete this copy from your
system. You may also call us at (309) 827-6026 for assistance.
Reply | Threaded
Open this post in threaded view
|

FW: Date wizard

Melissa Ives
In reply to this post by Chelminski, Iwona
This bounced back and we had been having e-mail problems over the past
day or so, so I'm trying again as I didn't see that it actually arrived
at the list--my PROFUSE apologies if this is a second posting....

Melissa

-----Original Message-----
From: L-Soft list server at UGA (1.8d)
[mailto:[hidden email]]
Sent: Thursday, November 16, 2006 8:52 AM
To: Melissa Ives
Subject: Rejected posting to [hidden email]

Your message  is being returned to  you unprocessed because it  appears
to have already been distributed to the SPSSX-L -----Original
Message-----
From: Melissa Ives <[hidden email]>
Subject:      Re: Date wizard

You also ignore year, shorten the logic and use:
if (xdate.month(date_1) GE 03 and xdate.month(date_1)LE 05) season=1.
if (xdate.month(date_1) GE 06 and xdate.month(date_1)LE 08) season=2.
if (xdate.month(date_1) GE 09 and xdate.month(date_1)LE 11) season=3.
if (xdate.month(date_1) GE 12 or xdate.month(date_1)LE 02) season=4.

NOTE: you need to change season 4 from 'and' to 'or' since it is the
beginning or end of the month count.

Melissa

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Edward Boadi
Sent: Wednesday, November 15, 2006 1:41 PM
To: [hidden email]
Subject: Re: [SPSSX-L] Date wizard

Hi Iwona,
The first and subsequent 'IF' statements should read :

if ((date_1 GE DATE.MDY(03,01,2004)) and (date_1 LE
DATE.MDY(05,31,2004)) ) or ((date_1 GE DATE.MDY(03,01,2005) ) and
(date_1 LE DATE.MDY(05,31,2005)) ) season=1.

Regards.
Edward.


DATE.MDY(7,1,2005).
-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]]On Behalf Of
Chelminski, Iwona
Sent: Wednesday, November 15, 2006 2:33 PM
To: [hidden email]
Subject: Date wizard


Hi Group,

I want to divide my sample into 4 groups, depending on when they came
into the office ("date_1" is the name of my date variable). What's wrong
with this syntax?
I'm sure the date variable is  presented in some other way--please help.

Thanks in advance,
Iwona

compute season=0.
if ((date_1 GE 03/01/04) and (date_1 LE 05/31/04)) or ((date_1 GE
03/01/05) and (date_1 LE 05/31/05)) season=1.
if ((date_1 GE 06/01/04) and (date_1 LE 08/31/04)) or ((date_1 GE
06/01/05) and (date_1 LE 08/31/05)) season=2.
if (date_1 GE 09/01/04) and (date_1 LE 11/30/04) season=3.
if (date_1 GE 12/01/04) and (date_1 LE 02/29/05) season=4.
value labels season 0 'missing' 1 'spring' 2 'summer' 3 'fall' 4 '
winter'.



PRIVILEGED AND CONFIDENTIAL INFORMATION
This transmittal and any attachments may contain PRIVILEGED AND
CONFIDENTIAL information and is intended only for the use of the
addressee. If you are not the designated recipient, or an employee or
agent authorized to deliver such transmittals to the designated
recipient, you are hereby notified that any dissemination, copying or
publication of this transmittal is strictly prohibited. If you have
received this transmittal in error, please notify us immediately by
replying to the sender and delete this copy from your system. You may
also call us at (309) 827-6026 for assistance.
Reply | Threaded
Open this post in threaded view
|

Rejected "Duplicate" postings (was, re: FW: Date wizard)

Richard Ristow
At 11:06 AM 11/16/2006, Melissa Ives wrote:

>This bounced back and we had been having e-mail problems over the past
>day or so, so I'm trying again as I didn't see that it actually
>arrived at the list--my PROFUSE apologies if this is a second
>posting....

I've hit this one a few times myself. It's hard to diagnose, if there's
any chance you've missed messages from the list, or if your list
options don't include receiving your own postings.

The message

>From: L-Soft list server at UGA (1.8d)
>[mailto:[hidden email]]
>Sent: Thursday, November 16, 2006 8:52 AM
>To: Melissa Ives
>Subject: Rejected posting to [hidden email]
>
>Your message  is being returned to  you unprocessed because
>it  appears
>to have already been distributed to the SPSSX-L,

or a message rejecting your posting because it's very similar to a
previous one, seems to arise when a SUBSCRIBER's mailer bounces the
posting, in such a way that the bounce goes to the list rather than to
the poster. The message is sent to you, to alert you in case you really
meant the rejected posting (in which case, alter it sufficiently, and
try again).

If you do receive your own postings (list option REPRO), and you see
that the original posting was distributed, ignore either of these
messages.

(Rejecting repeated postings is necessary; else, the bounce message to
the list will be circulated as a posting, generating another bounce to
the list and another new posting,...)

As for setting that option:

Mail to [hidden email]

with body text

SET SPSSX-L REPRO