Stata-basics_by_example-2

Stata-basics_by_example-2 - Stata - Basics by example-2...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Stata - Basics by example-2 This handout describes two Stata features. First, I’ll describe how to use the Do-file Editor to write, execute and save Stata programs. Second, I’ll describe how to save Stata output in a Log file suitable for importing into your favorite Word Processor. Click on the Do-file Editor icon (it looks like a pen on paper). A new editor window will open. Start typing in commands as you would in the Stata command window: set mem 5m use “d:\teaching\eco721\lab\fertility.dta”, clear summarize regress nchild age_mom age_dad edu_mom edu_dad income land livstk gen incdolth=income/30/1000 gen incdolth2=incdolth2^2 regress nchild age_mom age_dad edu_mom edu_dad incdolth incdolth2 land livstk To “do” this file, click on the Do Current File icon (second from right, looks like a page with writing on it). This will run the commands in Stata. If you want to do only a subset of commands, highlight them in the Do-file Editor and then click on Do Current File. Be sure to save your Do file.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/12/2009 for the course ECONOMICS 721 taught by Professor Partha during the Spring '09 term at CUNY Hunter.

Page1 / 2

Stata-basics_by_example-2 - Stata - Basics by example-2...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online