Dear Statalisters,
I have just posted my program labeldatasyntax on SSC.
It creates a syntax file (with syntax like that below) to label variables and/or values, given a data dictionary is provided in one of a few specific formats.
label define regionlbl 1 "North" 2 "East" 3 "South" 4 "West"
label define sexlbl 1 "Male" 2 "Female"
label define yesnolbl 0 "No" 1 "Yes"
label values sex sexlbl
label values region regionlbl
label values badears yesnolbl
label values respprobs yesnolbl
label variable sex "Gender"
label variable region "Where the child lives"
label variable age "Age of child in years"
label variable dob "Date of birth"
label variable badears "Has bad ears?"
label variable respprobs "Has respiratory problems?"
It is also hoped that the .csv files provided in this package could be useful for users in communicating to data providers what is a convenient format to receive a data dictionary associated with a dataset.
Feedback welcome.
Best wishes, Mark
I have just posted my program labeldatasyntax on SSC.
It creates a syntax file (with syntax like that below) to label variables and/or values, given a data dictionary is provided in one of a few specific formats.
label define regionlbl 1 "North" 2 "East" 3 "South" 4 "West"
label define sexlbl 1 "Male" 2 "Female"
label define yesnolbl 0 "No" 1 "Yes"
label values sex sexlbl
label values region regionlbl
label values badears yesnolbl
label values respprobs yesnolbl
label variable sex "Gender"
label variable region "Where the child lives"
label variable age "Age of child in years"
label variable dob "Date of birth"
label variable badears "Has bad ears?"
label variable respprobs "Has respiratory problems?"
It is also hoped that the .csv files provided in this package could be useful for users in communicating to data providers what is a convenient format to receive a data dictionary associated with a dataset.
Feedback welcome.
Best wishes, Mark
Comment