Skip to content
Snippets Groups Projects
Commit d8828438 authored by Ben Anderson's avatar Ben Anderson
Browse files

added STATA data pre-processing script

parent 223819cf
No related branches found
No related tags found
No related merge requests found
* Stata script to merge & process original time use data
local ipath "/Users/ben/Documents/Work/Data/Social Science Datatsets/Time Use 2005/processed/"
local opath "/Users/ben/Documents/Dropbox/energy-storage-dtc/data/"
* survey variables to add
local keepvars "gora numadult numdepch respsex respmar respwith numcar qhealth1 wrking nsecac5 agex ageh tengrp month agegrp"
use "`ipath'/timeusefinal_for_archive_diary_long_v2.0.dta", clear
merge m:1 serial using "`ipath'/timeusefinal_for_archive_survey_v2.0.dta", keepusing(`keepvars')
compress
save "`opath'/UK-2005-TU-merged-long-reduced.dta", replace
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment