Notes command in Stata | Johan Osterberg - Product Engineer

Notes command in Stata

May 11, 2019

The notes command is used for attaching notes to a variable. Can be useful in when it might be hard to interpret a variable, or when any transformations were done and so on. Let's try it out:

sysuse auto, clear
notes rep78: "Contains missing data, TODO: handle"
notes list

The last line lists all the notes for the entire dataset. To just list the note we attached to the rep78 variable, just run:

notes rep78

Profile picture

Written by Johan Osterberg who lives and works in Gothenburg, Sweden as a developer specialized in e-commerce. Connect with me on Linkedin

2024 © Johan Osterberg