* Encoding: UTF-8. *prepare final Finland 1979 files for IPUMS Time Use submission. *last updated 22 August 2016, Kimberly Fisher. get file='C:\Users\Kimberly Fisher\Desktop\Kimberly\time\mtus\mtus data\countries\Finland\1979\fin1979haf.sav' /keep swave msamp hldid persid id parntid1 parntid2 partid hhtype hhldsize nchild agekidx agekid2 incorig income ownhome urban computer vehicle famstat singpar relrefp civstat cohab citizen empstat emp unemp student retired empsp workhrs empinclm occupo isco1 sector educa edcat rushed health carer disab ocombwt propwt month day diary. compute wherborn=-9. apply dictionary from 'C:\Users\Kimberly Fisher\Desktop\Kimberly\time\mtus\MTUS database\schema&etc\MTUSHAFschema.sav'. rename variables (month day diary = agmonth agday agdiary). execute. match files table=* /in=agg file='C:\Users\Kimberly Fisher\Desktop\Kimberly\time\mtus\mtus data\countries\Finland\1979\fin1979hef.sav' /in=ep /by swave msamp hldid persid id. execute. cro agg by ep. cro month by agmonth. cro day by agday. cro diary by agdiary. sort cases by persid id clockst. match files files=* file='C:\Users\Kimberly Fisher\Desktop\Kimberly\time\mtus\mtus data\countries\Finland\1979\animal.sav' /by persid id clockst. cro main by animal. *remove time associated with plants. if main=46 and animal=1 animal=0. recode animal (sysmis=0). var lab animal "with a pet, companion/service/domestic animal". val lab animal -9 could not be created for study -7 not collected for diary group 0 no 1 yes. cro main sec by animal. recode main (2, 3=1) (5, 6=2) (1, 4=3) (7 thru 14=4) (15 thru 17=5) (18, 19=6) (20 thru 23=7) (22=8) (24 thru 26=9) (46=10) (27, 47=11) (32=12) (28, 31=13) (29, 30=14) (34=15) (33=16) (63, 64=17) (62=18) (65 thru 68=18) (42 thru 44=19) (57 thru 59=20) (56=21) (60, 61=22) (35 thru 41=23) (45=23) (48 thru 55=24) (69=25) into core25. var lab core25 reduced core 25 activity codes. val lab core25 1 sleep 2 eat or drink 3 personal care 4 paid work 5 education 6 "food preparation/clean-up" 7 cleaning and housework 8 home and car maintain 9 shopping or service use 10 gardening 11 pet care 12 care of older people 13 physical or supervisory child care 14 interactive child care 15 religious activity 16 volunteering 17 commuting and education travel 18 other travel 19 sport or exercise 20 TV, radio, music 21 read 22 computer games, internet use 23 out of home entertainment 24 other leisure 25 missing. freq core25. save outfile='C:\Users\Kimberly Fisher\Desktop\Kimberly\time\mtus\mtus data\countries\Finland\1979\fi1979tusx-main.sav' /keep country survey swave msamp hldid persid id day cday month year diary nowght time clockst start end epnum main core25 sec av inout eloc ict mtrav alone child sppart oad animal parntid1 parntid2 partid hhtype hhldsize nchild agekidx agekid2 income ownhome urban computer vehicle sex age famstat singpar relrefp civstat cohab citizen wherborn empstat emp unemp student retired empsp workhrs isco1 sector edcat rushed health carer disab ocombwt propwt. freq incorig empinclm. val lab occupo -8 no response -7 not working or not asked of this diarist 11 science professional - manager, executive, employer 12 science professional - lower 21 'medical/health professional - manager, executive, employer' 22 'medical/health professional - lower' 31 education professional - manager, executive, employer 32 education professional - lower 41 other professional - manager, executive, employer 42 other professional - lower 50 managerial, administration 61 clerical, secretarial - manager, executive, employer 62 clerical, secretarial 71 data entry, other clerical - manager, executive, employer 72 data entry, other clerical 81 wholesale, retail, business services - manager, executive, employer 82 wholesale, retail, business services 91 other sales - manager, executive, employer 92 other sales 101 skilled agriculture, forestry, fishing - employer 102 skilled agriculture, forestry, fishing - other skilled 111 pilots, drivers, ship crews - other employer, lower managerial 112 pilots, drivers, ship crews 121 post, other transport & communication - manager, executive, employer 122 post, other transport & communication 131 textile manufacturing - other employer, lower managerial 132 textile manufacturing 141 metal processing & manufacturing - other employer, lower managerial 142 metal processing & manufacturing 151 building trades - other employer, lower managerial 152 building trades, skilled 153 building trades, unskilled 161 other trades & manufacturing - other employer, lower managerial 162 other trades & manufacturing, skilled 163 other trades & manufacturing, unskilled 171 packing, dock, warehouse, manual work - other employer, lower managerial 172 packing, dock, warehouse, manual work, skilled 173 packing, dock, warehouse, manual work, unskilled 181 public safety, housing, food services - other employer, lower managerial 182 public safety, housing, food services, skilled 183 public safety, housing, food services, unskilled 191 travel, personal care, other services - other employer, lower managerial 192 travel, personal care, other services, skilled 193 travel, personal care, other services, unskilled 201 mining, quarrying, military & others - other employer, lower managerial 202 mining, quarrying, military & others. freq occupo. val lab educa 1 Matriculation from higher education 2 'Middle / Comprehensive ' 3 'Primary / Middle' 4 'Part Primary / Nothing' 9 Cannot Say. freq educa. compute region=-9. compute ethnic=-9. compute migrantd=-9. compute migrantm=-9. compute migrantf=-9. var lab region region. var lab ethnic ethnicity. var lab migrantd country where the diarist was born. var lab migrantm 'country where the diarist’s mother was born'. var lab migrantf 'country where the diarist’s father was born'. val lab ethnic region migrantd migrantm migrantf -9 not included in survey. freq region ethnic migrantd migrantm migrantf. Aggregate outfile='C:\Users\Kimberly Fisher\Desktop\Kimberly\time\mtus\mtus data\countries\Finland\1979\fi1979tusx-survey.sav' /break country survey swave msamp hldid persid /incorig=MAX(incorig) /empinclm=MAX(empinclm) /occupo=MAX(occupo) /educa=MAX(educa) /region=MAX(region) /ethnic=MAX(ethnic) /migrantd=MAX(migrantd) /migrantm=MAX(migrantm) /migrantf=MAX(migrantf). get file='C:\Users\Kimberly Fisher\Desktop\Kimberly\time\mtus\mtus data\countries\Finland\1979\fi1979tusx-main.sav'. new file. get file='C:\Users\Kimberly Fisher\Desktop\Kimberly\time\mtus\mtus data\countries\Finland\1979\fi1979tusx-survey.sav'. *make one additional file - sppart available as a summary variable but not a diary variable - preserve *the level of information which is available. get file='C:\Users\Kimberly Fisher\Desktop\Kimberly\time\mtus\mtus data\countries\Finland\1979\fin1979haf.sav' /keep persid id sppart. save outfile='C:\Users\Kimberly Fisher\Desktop\Kimberly\time\mtus\mtus data\countries\Finland\1979\fin1979-sppart-ipums.sav' /compressed. get file='C:\Users\Kimberly Fisher\Desktop\Kimberly\time\mtus\mtus data\countries\Finland\1979\fin1979-sppart-ipums.sav'.