Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • turning labels and label values from one .dta file into a .do file to run on new .dta file

    Hi. I want to take a large .csv file that Census just released yesterday (but without a Stata .do file) and use an old version of a similar file that another source put into a Stata .dta file which includes variable labels/value labels (but also no .do file). Is there a way to create a .do file for value labels from the older "finished" .dta file to apply to the newer .csv once imported? Given the continuity of variable names and labels (and checking the codebook), I think this will produce few errors. I am using Stata 15 (but have access to Stata 18 if that would help). Thank you.

  • #2
    Code:
    label save
    saves value label definitions in a do-file.

    Comment


    • #3
      Perfect. Thank you!

      Comment

      Working...
      X