From b656344d7066e50f8c89b43a84379a5c7fb6bb5b Mon Sep 17 00:00:00 2001 From: Ruth Costello Date: Thu, 11 Aug 2022 16:00:31 +0100 Subject: [PATCH] Update 2_cleanheightdata.do --- scripts/2_cleanheightdata.do | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/2_cleanheightdata.do b/scripts/2_cleanheightdata.do index 93ace5a..42147fe 100644 --- a/scripts/2_cleanheightdata.do +++ b/scripts/2_cleanheightdata.do @@ -30,7 +30,7 @@ drop data3 data4 data5 data6 data7 * Generates pracid 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