diff --git a/scripts/1_cleanweightdata.do b/scripts/1_cleanweightdata.do index ecf869c..2bf0f1f 100644 --- a/scripts/1_cleanweightdata.do +++ b/scripts/1_cleanweightdata.do @@ -33,7 +33,7 @@ drop data4 data5 data6 data7 * Generates practice ID from patid tostring patid, generate(str_patid) -gen str_pracid = substr(str_patid,-3,3) +gen str_pracid = substr(str_patid,-5,5) destring str_pracid, gen(pracid) drop str_pracid str_patid