Discussion:
Creating a censor date
(too old to reply)
k***@gmail.com
2018-05-22 15:06:26 UTC
Permalink
Hi, Im doing a research on uptake of presymptomatic testing and I want to create a censor date but have no idea how to do it.

My time include
1. Date of individual testing
2. Date of cancer
3. 30/4/2018 if they are still alive or if they fall under empty values for date of individual testing

Would anyone be able to help me out with this?

Thanks
Rich Ulrich
2018-05-22 20:01:18 UTC
Permalink
Post by k***@gmail.com
Hi, Im doing a research on uptake of presymptomatic testing and I want to create a censor date but have no idea how to do it.
My time include
1. Date of individual testing
2. Date of cancer
3. 30/4/2018 if they are still alive or if they fall under empty values for date of individual testing
Would anyone be able to help me out with this?
Thanks
If you want a variable to hold the value for the censorship
date, you can get the number, and format it, with -

COMMENT compute the SPSS number value for censoring.
COMPUTE cdate=DATE.DMY(30, 4, 2018).
VARIABLE LEVEL cdate (SCALE).
FORMATS cdate (DATE11).

If you just want the number to use in arithmetic for
computing intervals, you can run the above lines one time
to get the 11-digit value, and then provide that value
in your program by using

COMMENT put in the SPSS value for 30/4/2018 for cdate.
DEFINE cdate ( ) 13000000000
!ENDDEFINE.
--
Rich Ulrich
Loading...