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

added setting xtset to processing file

parent c9e6cbca
No related branches found
No related tags found
No related merge requests found
...@@ -146,6 +146,8 @@ if `create_longfile' { ...@@ -146,6 +146,8 @@ if `create_longfile' {
* this takes a LONG time - avoid running many times! * this takes a LONG time - avoid running many times!
reshape long Gcons GconsValid Econs EconsValid, i(HH_ID) reshape long Gcons GconsValid Econs EconsValid, i(HH_ID)
rename _j year rename _j year
* set as panel
xtset HH_ID year, delta(1 year)
compress compress
save "`dpath'/processed/`ifile'_consumptionfile_long.dta", replace save "`dpath'/processed/`ifile'_consumptionfile_long.dta", replace
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment