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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SERG
Census2022
Commits
12a67bee
Commit
12a67bee
authored
10 years ago
by
Ben Anderson
Browse files
Options
Downloads
Patches
Plain Diff
added xtset examination of missing
parent
73e9ba3b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CER-data-processing-original.do
+16
-1
16 additions, 1 deletion
CER-data-processing-original.do
with
16 additions
and
1 deletion
CER-data-processing-original.do
+
16
−
1
View file @
12a67bee
...
@@ -222,11 +222,26 @@ sort ID s_datetime
...
@@ -222,11 +222,26 @@ sort ID s_datetime
* check
* check
li
ID
date
halfhour
s_
*
in
1
/
12
,
sep
(
2
)
li
ID
date
halfhour
s_
*
in
1
/
12
,
sep
(
2
)
* is min = 1 & if not which day does the data start?
su
date
drop
date
ds_halfhour
halfhour
hour
mins
sec
ds
ts_ds
drop
date
ds_halfhour
halfhour
hour
mins
sec
ds
ts_ds
compress
compress
save
"$odfiles/processed/HH2009_long.dta"
,
replace
* test to see if missing half hours and ids
xtset
ID
s_datetime
,
delta
(
30
minutes
)
* possibly
* expand to all 30 seconds between the first and last obs for each hubid
* (increases file size quite a bit)
* , full -> imputes ALL missing periods
* puts . into any missing var - fix that later
tsfill
save
"$odfiles/processed/HH2009_long_filled.dta"
,
replace
timer
off
1
timer
off
1
...
...
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