27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Logical functions:<br />

RANGE(varname,range) True if value of variable is in range.<br />

ANY(arg,arg list) True if value of first argument is included on argument list.<br />

Other functions:<br />

Date and time aggregation functions:<br />

Date and time conversion functions:<br />

Date and time extraction functions:<br />

COMPUTE 251<br />

UNIFORM(arg) Uniform pseudo-random number between 0 and arg.<br />

NORMAL(arg) Normal pseudo-random number with mean of 0 and standard deviation of<br />

arg.<br />

CDFNORM(arg) Probability that random variable falls below arg.<br />

PROBIT(arg) Inverse of CDFNORM.<br />

DATE.DMY(d,m,y) Read day, month, year, and return date.<br />

DATE.MDY(m,d,y) Read month, day, year, and return date.<br />

DATE.YRDAY(y,d) Read year, day, and return date.<br />

DATE.QYR(q,y) Read quarter, year, and return quarter start date.<br />

DATE.MOYR(m,y) Read month, year, and return month start date.<br />

DATE.WKYR(w,y) Read week, year, and return week start date.<br />

TIME.HMS(h,m,s) Read hour, minutes, seconds, and return time interval.<br />

TIME.DAYS(d) Read days and return time interval.<br />

YRMODA(yr,mo,da) Convert year, month, day to day number.<br />

CTIME.DAYS(arg) Convert time interval to days.<br />

CTIME.HOURS(arg) Convert time interval to hours.<br />

CTIME.MINUTES(arg) Convert time interval to minutes.<br />

XDATE.MDAY(arg) Return day of the month.<br />

XDATE.MONTH(arg) Return month of the year.<br />

XDATE.YEAR(arg) Return four-digit year.<br />

XDATE.HOUR(arg) Return hour of a day.<br />

XDATE.MINUTE(arg) Return minute of an hour.<br />

XDATE.SECOND(arg) Return second of a minute.<br />

XDATE.WKDAY(arg) Return weekday number.<br />

XDATE.JDAY(arg) Return day number of day in given year.<br />

XDATE.QUARTER(arg) Return quarter of date in given year.<br />

XDATE.WEEK(arg) Return week number of date in given year.<br />

XDATE.TDAY(arg) Return number of days in time interval.<br />

XDATE.TIME(arg) Return time portion of given date and time.<br />

XDATE.DATE(arg) Return integral portion of date.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!