![]() You are trying to compute the number of *days between the two dates. *3) You have two date fields, an entrance and an exit date. SAVE OUTFILE='dum.sav' / DROP=v1 year day month. *Saves the data file and drops the original variable along with the year, day, and month *variable. *Computes the year, day, and month from the string variable.ĬOMPUTE year=number(SUBSTR(string(v1,F8),7,2),F2).ĬOMPUTE day=number(SUBSTR(string(v1,F8),5,2),F2).ĬOMPUTE month=number(SUBSTR(string(v1,F8),3,2),F2). ![]() How can you turn this into a mm/dd/yy format? You had a date field that appears as a *number in the SPSS Data Editor window. *2) You imported a file from another program into SPSS. *How can you convert the string into a mm/dd/yy format? *1) You imported a data file from Excel to SPSS. You may also use the Date and Time Wizard, available since SPSS 14 from the menu Transform->Date and Time Wizard. The following SPSS command syntax examples show you how to convert several types of non-date formatted variables into date formatted variables.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |