Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Census2022
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
SERG
Census2022
Commits
5f76925e
Commit
5f76925e
authored
10 years ago
by
Ben Anderson
Browse files
Options
Downloads
Patches
Plain Diff
renamed merge variable
parent
5fe27745
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CER-data-processing.do
+4
-1
4 additions, 1 deletion
CER-data-processing.do
with
4 additions
and
1 deletion
CER-data-processing.do
+
4
−
1
View file @
5f76925e
...
...
@@ -231,6 +231,7 @@ save "$pdfiles/Oct-2009-daily-summaries-survey-$version.dta", replace
*********************
* Switch to 1/2 hour level data
* mid-week
insheet
using
"$pdfiles/CER_OctHH_data/CER_OctHH_mdwk_30min.txt"
,
tab
clear
li
in
1
/
5
* the columns are munched
...
...
@@ -292,6 +293,8 @@ tostring timestamp, gen(tmp_timestamp) force
gen
halfhour
=
substr
(
tmp_timestamp
,
4
,
5
)
gen
midweek
=
0
lab
val
midweek
midweek
drop
tmp_timestamp
save
"$pdfiles/CER_OctHH_data/CER_Oct2009HH_wkend_30min.dta"
,
replace
*********************************
...
...
@@ -299,7 +302,7 @@ save "$pdfiles/CER_OctHH_data/CER_Oct2009HH_wkend_30min.dta", replace
append
using
"$pdfiles/CER_OctHH_data/CER_Oct2009HH_mdwk_30min.dta"
* add the clustering results
merge
m
:
1
ID
using
"$pdfiles/October 2009 summaries/OctHH_clusterIDs.dta"
,
gen
(
_
m_cluster
)
merge
m
:
1
ID
using
"$pdfiles/October 2009 summaries/OctHH_clusterIDs.dta"
,
gen
(
m_cluster
)
* add the survey data (makes big file) but only keep what we need
merge
m
:
1
ID
using
"$pdfiles/Smart meters Residential pre-trial survey data-$version.dta"
,
gen
(
_m_survey
)
///
...
...
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