Time between two dates in Years

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

Time between two dates in Years

KEVIN MANNING
Dear list mates,

   Does anyone have a syntax handy for computing the time (in years) between two 'visit' dates (each date is in month,day,year)? Thanks for the help.
   Kevin
Reply | Threaded
Open this post in threaded view
|

Re: Time between two dates in Years

Melissa Ives
Compute yearsbtw=Datediff(date2,date1,'YEARS').

Melissa
The bubbling brook would lose its song if you removed the rocks.


-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
KEVIN MANNING
Sent: Friday, March 16, 2007 2:54 PM
To: [hidden email]
Subject: [SPSSX-L] Time between two dates in Years

Dear list mates,

   Does anyone have a syntax handy for computing the time (in years)
between two 'visit' dates (each date is in month,day,year)? Thanks for
the help.
   Kevin


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
|

A Mixed Model Poser?

Mark A Davenport MADAVENP
We have surveyed 80 couples (pastors and their spouses) and have scores on
3 related psycological scales.  I would like to texaminet differences
between within and between pastor/spouse groups but I also want to examine
effects at the level of 'couple', if they exist.  This seems to be tailor
made for mixed modeling but I am having trouble wraping my head around it,
particularly since the couple level has, by definition, only 2 cases ber
group.  I have been reading both the SPSS mixed and HLM literature but am
still iffy as top how to set this up and how to interpret if, indeed, it
will even run.  Any ideas?

Thanks in advance,

Mark

***************************************************************************************************************************************************************
Mark A. Davenport Ph.D.
Senior Research Analyst
Office of Institutional Research
The University of North Carolina at Greensboro
336.256.0395
[hidden email]

'An approximate answer to the right question is worth a good deal more
than an exact answer to an approximate question.' --a paraphrase of J. W.
Tukey (1962)
Reply | Threaded
Open this post in threaded view
|

Re: A Mixed Model Poser?

Burleson,Joseph A.
Mark:

It should run. Think of it as a within-subjects variable, couple (level
1 = pastor; level 2 = spouse). By the way, you can have a simultaneous
within-subjects level of couple_gender (level 1 = male; level 2 =
female), but this would only be useful if a significant percentage of
the pastors were female (and their spouses were male). A
between-subjects variable would be same versus different sex couples. In
this case, this would not cross factorially with the above
within-subjects variable because they assume opposite sex couples. A
between-subjects variable in this case would also be male versus female.
All of these can be in the model (with enough df). Nonetheless, subjects
are the unit of analysis, nested within couple. Couples might be nested
within towns, etc.

Joe Burleson

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Mark A Davenport MADAVENP
Sent: Thursday, March 22, 2007 2:18 PM
To: [hidden email]
Subject: A Mixed Model Poser?

We have surveyed 80 couples (pastors and their spouses) and have scores
on
3 related psycological scales.  I would like to texaminet differences
between within and between pastor/spouse groups but I also want to
examine
effects at the level of 'couple', if they exist.  This seems to be
tailor
made for mixed modeling but I am having trouble wraping my head around
it,
particularly since the couple level has, by definition, only 2 cases ber
group.  I have been reading both the SPSS mixed and HLM literature but
am
still iffy as top how to set this up and how to interpret if, indeed, it
will even run.  Any ideas?

Thanks in advance,

Mark

************************************************************************
************************************************************************
***************
Mark A. Davenport Ph.D.
Senior Research Analyst
Office of Institutional Research
The University of North Carolina at Greensboro
336.256.0395
[hidden email]

'An approximate answer to the right question is worth a good deal more
than an exact answer to an approximate question.' --a paraphrase of J.
W.
Tukey (1962)
Reply | Threaded
Open this post in threaded view
|

Re: A Mixed Model Poser?

peter link
In reply to this post by Mark A Davenport MADAVENP
Mark -

First off I don't have the solution for you, but I know there is quite an
extensive Literature on the modeling of dyads.  My suggestion is to post
this on the Multilevel Listserve.  There has been some talk of this in the
recent months.  I'm sure you will get some very fine help from people well
versed in the subject.

Peter Link
VA San Diego Healthcare System

The Multilevel Listserve can be found at

http://www.jiscmail.ac.uk/cgi-bin/webadmin?A0=multilevel&D=0&F=&H=0&O=T&S=&T
=0

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]]On Behalf Of
Mark A Davenport MADAVENP
Sent: Thursday, March 22, 2007 11:18 AM
To: [hidden email]
Subject: A Mixed Model Poser?


We have surveyed 80 couples (pastors and their spouses) and have scores on
3 related psycological scales.  I would like to texaminet differences
between within and between pastor/spouse groups but I also want to examine
effects at the level of 'couple', if they exist.  This seems to be tailor
made for mixed modeling but I am having trouble wraping my head around it,
particularly since the couple level has, by definition, only 2 cases ber
group.  I have been reading both the SPSS mixed and HLM literature but am
still iffy as top how to set this up and how to interpret if, indeed, it
will even run.  Any ideas?

Thanks in advance,

Mark

****************************************************************************
****************************************************************************
*******
Mark A. Davenport Ph.D.
Senior Research Analyst
Office of Institutional Research
The University of North Carolina at Greensboro
336.256.0395
[hidden email]

'An approximate answer to the right question is worth a good deal more
than an exact answer to an approximate question.' --a paraphrase of J. W.
Tukey (1962)
Reply | Threaded
Open this post in threaded view
|

Re: A Mixed Model Poser?

Dale Glaser
And you may want to look at a text that came out last year by Kenny et al (I think  Guilford is the publisher) specifically dedicated to dyadic analysis.............

peter link <[hidden email]> wrote:  Mark -

First off I don't have the solution for you, but I know there is quite an
extensive Literature on the modeling of dyads. My suggestion is to post
this on the Multilevel Listserve. There has been some talk of this in the
recent months. I'm sure you will get some very fine help from people well
versed in the subject.

Peter Link
VA San Diego Healthcare System

The Multilevel Listserve can be found at

http://www.jiscmail.ac.uk/cgi-bin/webadmin?A0=multilevel&D=0&F=&H=0&O=T&S=&T
=0

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]]On Behalf Of
Mark A Davenport MADAVENP
Sent: Thursday, March 22, 2007 11:18 AM
To: [hidden email]
Subject: A Mixed Model Poser?


We have surveyed 80 couples (pastors and their spouses) and have scores on
3 related psycological scales. I would like to texaminet differences
between within and between pastor/spouse groups but I also want to examine
effects at the level of 'couple', if they exist. This seems to be tailor
made for mixed modeling but I am having trouble wraping my head around it,
particularly since the couple level has, by definition, only 2 cases ber
group. I have been reading both the SPSS mixed and HLM literature but am
still iffy as top how to set this up and how to interpret if, indeed, it
will even run. Any ideas?

Thanks in advance,

Mark

****************************************************************************
****************************************************************************
*******
Mark A. Davenport Ph.D.
Senior Research Analyst
Office of Institutional Research
The University of North Carolina at Greensboro
336.256.0395
[hidden email]

'An approximate answer to the right question is worth a good deal more
than an exact answer to an approximate question.' --a paraphrase of J. W.
Tukey (1962)



Dale Glaser, Ph.D.
Principal--Glaser Consulting
Lecturer/Adjunct Faculty--SDSU/USD/AIU
President-Elect, San Diego Chapter of
American Statistical Association
3115 4th Avenue
San Diego, CA 92103
phone: 619-220-0602
fax: 619-220-0412
email: [hidden email]
website: www.glaserconsult.com