/* this merges the Wards quantity with the Edmunds previously consolidated data*/ /* created by TLM 7.28.04*/ /* modified 8.16.04*/ /* modified 4.4.05 due to DSI renaming pathnames! grrr and because I forgot to merge on mydate!*/ clear set mem 100m #delimit; use "C:\Workdocs\Hellerstein\edmunds\july-august\vers 3 total_shw edmunds reconciled models.dta", clear; merge make model mydate using "C:\Workdocs\Hellerstein\edmunds\july-august\vers 3 total_shw wards reconciled models.dta", _merge(mwards); label variable date "string from Edmunds"; label variable year "model year"; label variable quant_wards "quantity from Wards data"; label variable company "from Wards data"; label define mwardslab 1 "only in Edmunds data" 2 "only in Wards data" 3 "in both Wards and Edmunds data"; label values mwards mwardslab; label variable mwards "model make Edmunds or Wards indicator"; note _dta: created on TS from merging Wards and Edmunds from completed set.do; drop if mydate