Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
energy-storage-dtc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ben Anderson
energy-storage-dtc
Commits
d8828438
Commit
d8828438
authored
10 years ago
by
Ben Anderson
Browse files
Options
Downloads
Patches
Plain Diff
added STATA data pre-processing script
parent
223819cf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
data-pre-processing.do
+12
-0
12 additions, 0 deletions
data-pre-processing.do
with
12 additions
and
0 deletions
data-pre-processing.do
0 → 100644
+
12
−
0
View file @
d8828438
* 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment