This log file pdf has all of the results that came across my Stata results window. Translate “Stata Log for module 2 exercises.smcl” “Stata Log for module 2 exercises.pdf” If you have to give a printed copy of this to someone without the viewer, use the translate command to convert your file into a pdf.īelow is the code I have for converting a log file of mine. This is the extension that needs the Stata viewer in order to read it. Save your file with the extension “.smcl”. When you are finished, stop recording your log file.Īdvanced tip: How do you get a lovely copy of a log file that includes the line numbers of your do-file? Make sure when you name it you include the extension “.log”, or you won’t be able to read it unless you have the Stata viewer on the computer. When you start recording a log file you have to name it. Were you ever asked to show how you got your results? Did you try copying and pasting everything in your results window? (If I knew then what I know now I could have used the time to read War and Peace).īefore you start an analysis, start recording a log file. Graph combine male_salary.gph female_salary.gph, col(1) saving(salary_by_sex,replace) You can save and export the combined graphs as well: Graph combine male_salary.gph female_salary.gph, col(1) Graph combine male_salary.gph female_salary.gph For example if you have two graphs male_salary and female_salary. What if you want to see two or more graphs on one page? Use the combine option. To view the salary graph again the command is: Or save it in your working directory and re-use it whenever you want. Name the graph and Stata will store it in memory for the rest of your session. You have two options to get around this problem. So anytime you create a new graph it removes the prior graph from memory. Whenever Stata produces a graph it gives it the name “Graph” (what did you expect?). GraphsĮver run a do-file that produces a number of graphs? As soon as you produce a new graph the old graph disappears. Now you can move it to the right, left or center of the page.ĭon’t like the font? Go back to the results window, right click on the table, and select “font”. Now highlight the table, right click and “Copy as Picture”. Drag the right edge of the results window over to the left side of your table. When the big arrow icon of your mouse changes to “small arrows with 2 parallel lines in between” left click on your mouse and drag the window to the left. In Stata, hover your mouse over the right edge of the “results” window. As a result you can’t center the graph on the page using the “center” icon in Word. EmploymentĬopy as a picture looks much better but the border is very wide. Easier to read, but still unprofessional.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |