Skip to content

Commit

Permalink
Update 1_cleanweightdata.do
Browse files Browse the repository at this point in the history
  • Loading branch information
rc16 authored Aug 11, 2022
1 parent 4048ef9 commit 61fdb96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/1_cleanweightdata.do
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 61fdb96

Please # to comment.