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

added xtset examination of missing

parent 73e9ba3b
Branches
No related tags found
No related merge requests found
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment