X hits on this document

Word document

click on “Load Preferences”; (4) click on “Factory Settings.” If the ... - page 2 / 44





2 / 44

results you want to transfer into Word.  Then use “ctrl  c” (control  c) to copy the Stata results. Go into Word.  Use “ctrl  v” (control  v) to bring the Stata results into Word.  You can “lineup” the Stata results by making sure the font is “currier new” 9 (i.e., font size or number 9). To change the font, highlight the Stata results you have placed in Word.  With the highlight on, change the font to “currier new” 9 (i.e., 9 “point”).  Now save as a normal Word file.

Command File or “Do File” – Creating the file: (1) Go into Stata; (2) load a

dataset; (3) Click on “Window” (at the top of the screen); (4) Click on “Do-File”; (4) Click on “New Do-File”; (5) Write the commands that you want to save (you can include loading the data file) – for example:

version 9

use c:\taxreceiveratiodata.dta

probit grh85 ccus86 par86 medinc85

probit grh87 ccus88 par87 medinc87

Note: you could input an Excel spreadsheet that had been saved as

as “tab delimited” text file, as opposed to the “use” and then Stata

file as above, by replacing the “use” line with:

insheet using “c:/taxreceiveratiodata.txt” (doesn’t appear to be case


Further Note: for commands requiring more than one line, type /// at

The end of the first line and continue the command on the line below.

(6) save by clicking on “File” under  “Untitled” in the middle of the screen

To make changes in your “Do-File”  or to use one, or more, commands out of the file do the following: (1) Click on “Window” (at the top of the screen); (2) Click on “Do-File”; (3) click on “New Do File; (4) Click on “File”  under “Untitled” in the middle of the screen; (5) Click on “Open” and double click on the Do-File you want and the commands in the file will appear – you can either change/add commands or highlight existing commands and “copy” a command and then “paste” it in the Stata command line.

To run an entire “Do-File”: (1) Click on File in the upper left side of the screen; (2) Click on “Do” and then double click on the Do-File you want to run.

Show Last Command: “page up” key (“page down” for reverse direction)

Turn off “More”: to avoid having to press “more” to see additional results type

“set more off” in the command line or in your do file

Stopping Results: to stop results from “whizzing by” press the “Ctrl” key and

while the “Ctrl” key is depressed press “break” (left-side of key pad near the “numbers lock” key

Saving Results: to save results in Word type before any results appear type:

log using f:\T1Results.log     (T1Results is the file name on the f drive)

After the last results type: log close  You should then find this file on the f drive.  Highlight all results and switch the font to courier new 9 and it will line up correctly.

Sampling: to randomly select 10.5% of the cases from your dataset type:

Document info
Document views466
Page views530
Page last viewedSun Jan 22 10:59:57 UTC 2017