![]() ![]() The main differences between DO IF and IF are that Some SPSS users may be familiar with DO IF. The minimum for females working fulltime is 36. The maximum for females not working fulltime is below 36. This table -shown below- is a nice way to check the results. Our syntax ends with a MEANS table showing minima, maxima, means and standard deviations per gender per group. means whours by gender by fulltime /cells min max mean stddev. ![]() add value labels fulltime 0 'Not working fulltime' 1 'Working fulltime'. if(gender = 1 & whours >= 40) fulltime = 1. if(gender = 0 & whours >= 36) fulltime = 1. *Set fulltime to 1 if whours >= 36 for females or whours >= 40 for males. We then set it to one if the year -extracted from the date of birth- is in the RANGE 1980 through 1989. The syntax below first computes our flag variable -born80s- as a column of zeroes. Let's flag all respondents born during the 80’s. Example 1 - Flag Cases Based on Date Function For getting the most out of this tutorial, we recommend you download the file and try the examples for yourself.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |