Introduction to Stata 8
Introduction to Stata 8
Introduction to Stata 8
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Contents<br />
1. Installing, cus<strong>to</strong>mizing and updating <strong>Stata</strong> 3<br />
2. Windows in <strong>Stata</strong> 5<br />
3. Suggested mode of operation 7<br />
4. Getting help 9<br />
5. <strong>Stata</strong> file types and names 10<br />
6. Variables and observations 11<br />
6.1. Variable names 11<br />
6.2. Numeric variables 11<br />
6.3. Missing values 12<br />
7. Command syntax 13<br />
8. Getting data in<strong>to</strong> <strong>Stata</strong> 16<br />
9. Documentation commands 18<br />
10. Modifying data 20<br />
10.1. Calculations 20<br />
10.2. Selections 21<br />
10.3. Renaming and reordering variables 23<br />
10.4. Sorting data 24<br />
10.5. Numbering observations 24<br />
10.6. Combining files 25<br />
10.7. Reshaping data 26<br />
11. Description and analysis 27<br />
11.1. Categorical data 27<br />
11.2. Continuous data 30<br />
12. Regression models 32<br />
12.1. Linear regression 32<br />
12.2. Logistic regression 33<br />
13. Survival and related analyses 34<br />
14. Graphs 38<br />
15. Miscellaneous 54<br />
15.1. Memory considerations 54<br />
15.2. String variables 55<br />
15.3. Dates. Danish CPR numbers 57<br />
15.4. Random samples, simulations 59<br />
15.5. Immediate commands 60<br />
15.6. Sample size and power estimation 61<br />
15.7. Ado-files 62<br />
15.8. Exchange of data with other programs 63<br />
15.9. For old SPSS users 63<br />
16. Do-file examples 65<br />
Appendix 1: Purchasing <strong>Stata</strong> and manuals 67<br />
Appendix 2: Entering data with EpiData 68<br />
Appendix 3: NoteTab Light: a text edi<strong>to</strong>r 70<br />
Alphabetic index 71<br />
2