![]() ![]() However, there is a world of economic data out there that you can open directly in Stata, without downloading a file. The usual way to get data is to download a file, import it into Stata, and save as a Stata file. Log using stataworkshop.txt, text replace This is a good thing to do! It will capture your commands and your output. Change it to the folder where you have saved the data. You can change it with File > Change Working Directory. This is the first thing you should know, and a quick way to avoid problems. The log file can be turned on and off, but it is a good idea to help you keep track of what you've done. It could be /* like this */ for the middle of a line.Ī log file records the output of the commands as you run your code. Stata will ignore the text of the comments when you run your code, but they make your. do files along with their papers.Ī properly documented do file will contain comments that communicate your intentions at each step of code. the American Economic Review) require that authors submit. With a correctly written do file, anyone can reproduce your analysis. By using do files, log files, and comments, Stata provides a complete system for documenting your analysis in a way that is totally reproducible.ĭo files are scripts for automating Stata commands. ![]() Stata is a command line statistical package with an intuitive syntax, highly used by economists and other social scientists. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |