SPSS Date Variables - Beginners Tutorial & Examples

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024
  • DESCRIPTION:
    For dealing with date variables in SPSS, you could go to Transform - Date & Time Wizard.
    However, you can get the job done way better and faster with some very simple date functions such as
    -DATEDIFF for computing the time between 2 dates,
    -DATESUM for adding time (days, hours, ...) to dates,
    -XDATE for extracting time components (years, week days, ...) from dates &
    -DATE.DMY for creating dates from day, month & year.
    In this SPSS beginners video, you'll learn how to run all main date calculations the right way.
    I'll also cover some little known tricks such as
    -setting missing values for date variables and
    -adding the current date & time to your dataset.
    Hope it helps!
    TIMESTAMPS:
    01:09 overview main SPSS date functions
    03:52 example 1a - compute (truncated) age with DATEDIFF
    06:16 example 1b - compute (exact) age with DATEDIFF
    07:14 example 2a - extract weekday with XDATE
    10:12 example 2b - extract year, month, day with XDATE
    11:50 warning - XDATE.WEEK returns nonsensical week numbers
    12:12 example 3 - create date variable from day, month, year with DATE.DMY
    14:15 example 4 - add days to date with DATESUM
    16:44 example 5 - comparing dates in SPSS
    19:12 how are dates stored in SPSS?
    22:25 common date formats in SPSS
    24:56 quick tip 1 - missing values for date variables
    28:05 quick tip 2 - add current date to dataset
    RESOURCES:
    Written version: www.spss-tutor...
    Download example data file from: www.spss-tutor...
    Download final syntax file from: www.spss-tutor...
    Nonsensical week numbers in SPSS: www.spss-tutor...
    FOLLOW US:
    Complete SPSS beginners course on Udemy: tinyurl.com/sp...
    Official website: www.spss-tutor...
    RUclips: / @spss-tutorials
    LinkedIn: / spss-tutorials
    Facebook: / spss.tutorials.website
    #spss #dataanalysis

Комментарии • 1