I am very new to Stata and data management. I have already used the help command in Stata and did Google searches but remain confused. Is there a standard list of Stata commands or a downloadable program for converting the string variable of a participant's 10-digit CPR (civil registration number) into a usable 6-digit "DMY" date of birth, and a 4-digit "DM" birthday. With the Danish CPR#, the first two digits (1-2) from left to right are the day of birth, the next two digits (3-4) are the month of birth and the next two digits (5-6) are the year of birth. The last 4 digits (7-10) of the CPR# I do not need to work with.
-
Login or Register
- Log in with
Comment