- Page 1 and 2:
A Stata Press PublicationStataCorp
- Page 3 and 4:
iTable of contentsStata basics1 Rea
- Page 5 and 6:
iii8.2 The return message for obtai
- Page 7 and 8:
v14 Matrix expressions . . . . . .
- Page 9 and 10:
vii18.11.6 Writing online help . .
- Page 11 and 12:
ix25.2.15 Treatment of empty cells
- Page 13:
Stata basics1 Read this—it will h
- Page 16 and 17:
4 [ U ] 1 Read this—it will helpA
- Page 18 and 19:
6 [ U ] 1 Read this—it will helpW
- Page 20 and 21:
8 [ U ] 1 Read this—it will helpW
- Page 22 and 23:
10 [ U ] 1 Read this—it will help
- Page 24 and 25:
12 [ U ] 1 Read this—it will help
- Page 26 and 27:
14 [ U ] 1 Read this—it will help
- Page 28 and 29:
16 [ U ] 1 Read this—it will help
- Page 30 and 31:
18 [ U ] 1 Read this—it will help
- Page 32 and 33:
20 [ U ] 1 Read this—it will help
- Page 34 and 35:
22 [ U ] 1 Read this—it will help
- Page 36 and 37:
24 [ U ] 1 Read this—it will help
- Page 38 and 39:
26 [ U ] 1 Read this—it will help
- Page 40 and 41:
28 [ U ] 1 Read this—it will help
- Page 42 and 43:
30 [ U ] 1 Read this—it will help
- Page 44 and 45:
32 [ U ] 1 Read this—it will help
- Page 46 and 47:
34 [ U ] 1 Read this—it will help
- Page 48 and 49:
36 [ U ] 2 A brief description of S
- Page 50 and 51:
38 [ U ] 2 A brief description of S
- Page 52 and 53:
40 [ U ] 3 Resources for learning a
- Page 54 and 55:
42 [ U ] 3 Resources for learning a
- Page 56 and 57:
44 [ U ] 3 Resources for learning a
- Page 58:
46 [ U ] 3 Resources for learning a
- Page 61:
[ U ] 4.3 help: Stata’s help syst
- Page 64 and 65:
52 [ U ] 4 Stata’s help and searc
- Page 66 and 67:
54 [ U ] 4 Stata’s help and searc
- Page 68 and 69:
56 [ U ] 4 Stata’s help and searc
- Page 70 and 71:
58 [ U ] 5 Flavors of Stata5.2 Stat
- Page 72 and 73:
60 [ U ] 5 Flavors of StataThe diff
- Page 74 and 75:
62 [ U ] 6 Setting the size of memo
- Page 76 and 77:
64 [ U ] 6 Setting the size of memo
- Page 78 and 79:
66 [ U ] 6 Setting the size of memo
- Page 80 and 81:
68 [ U ] 6 Setting the size of memo
- Page 83 and 84:
8 Error messages and return codesCo
- Page 85:
[ U ] 8.2 The return message for ob
- Page 88 and 89:
76 [ U ] 9 The Break key9.2 Side ef
- Page 90 and 91:
78 [ U ] 10 Keyboard usesave is the
- Page 92 and 93:
80 [ U ] 10 Keyboard use10.4 Editin
- Page 94 and 95:
82 [ U ] 10 Keyboard useAnother met
- Page 97 and 98:
11 Language syntaxContents11.1 Over
- Page 99 and 100:
[ U ] 11.1 Overview 8711.1.2 by var
- Page 101 and 102:
[ U ] 11.1 Overview 89. summarize m
- Page 103 and 104:
[ U ] 11.1 Overview 91Example 7Nega
- Page 105 and 106:
11.1.7 options[ U ] 11.1 Overview 9
- Page 107 and 108:
[ U ] 11.1 Overview 9511.1.8 numlis
- Page 109 and 110:
[ U ] 11.2 Abbreviation rules 97by
- Page 111 and 112:
[ U ] 11.3 Naming conventions 99The
- Page 113 and 114:
[ U ] 11.4 varlists 101You may use
- Page 115 and 116:
[ U ] 11.4 varlists 103Consider a v
- Page 117 and 118:
[ U ] 11.4 varlists 105Here are som
- Page 119 and 120:
[ U ] 11.4 varlists 107You can sele
- Page 121 and 122:
[ U ] 11.4 varlists 109. use http:/
- Page 123 and 124:
[ U ] 11.5 by varlist: construct 11
- Page 125 and 126:
[ U ] 11.5 by varlist: construct 11
- Page 127 and 128:
[ U ] 11.6 File-naming conventions
- Page 129 and 130:
12 DataContents12.1 Data and datase
- Page 131 and 132:
[ U ] 12.2 Numbers 119. display 2/0
- Page 133 and 134:
[ U ] 12.2 Numbers 121Technical not
- Page 135 and 136:
[ U ] 12.4 Strings 12312.4 StringsA
- Page 137 and 138:
[ U ] 12.5 Formats: Controlling how
- Page 139 and 140:
[ U ] 12.5 Formats: Controlling how
- Page 141 and 142:
[ U ] 12.5 Formats: Controlling how
- Page 143 and 144:
[ U ] 12.6 Dataset, variable, and v
- Page 145 and 146:
[ U ] 12.6 Dataset, variable, and v
- Page 147 and 148:
[ U ] 12.6 Dataset, variable, and v
- Page 149 and 150:
[ U ] 12.6 Dataset, variable, and v
- Page 151 and 152:
[ U ] 12.8 Characteristics 139You c
- Page 153:
[ U ] 12.10 References 141The Varia
- Page 156 and 157: 144 [ U ] 13 Functions and expressi
- Page 158 and 159: 146 [ U ] 13 Functions and expressi
- Page 160 and 161: 148 [ U ] 13 Functions and expressi
- Page 162 and 163: 150 [ U ] 13 Functions and expressi
- Page 164 and 165: 152 [ U ] 13 Functions and expressi
- Page 166 and 167: 154 [ U ] 13 Functions and expressi
- Page 168 and 169: 156 [ U ] 13 Functions and expressi
- Page 170 and 171: 158 [ U ] 13 Functions and expressi
- Page 172 and 173: 160 [ U ] 13 Functions and expressi
- Page 174 and 175: 162 [ U ] 14 Matrix expressionsHere
- Page 176 and 177: 164 [ U ] 14 Matrix expressionsWe c
- Page 178 and 179: 166 [ U ] 14 Matrix expressions. ma
- Page 180 and 181: 168 [ U ] 14 Matrix expressionsRega
- Page 182 and 183: 170 [ U ] 14 Matrix expressionsEith
- Page 184 and 185: 172 [ U ] 14 Matrix expressionsThe
- Page 186 and 187: 174 [ U ] 14 Matrix expressions7. W
- Page 188 and 189: 176 [ U ] 15 Saving and printing ou
- Page 190 and 191: 178 [ U ] 15 Saving and printing ou
- Page 192 and 193: 180 [ U ] 15 Saving and printing ou
- Page 194 and 195: 182 [ U ] 16 Do-filesYou then enter
- Page 196 and 197: 184 [ U ] 16 Do-files* a sample ana
- Page 198 and 199: 186 [ U ] 16 Do-files16.1.4 Error h
- Page 200 and 201: 188 [ U ] 16 Do-filesMany users inc
- Page 202 and 203: 190 [ U ] 16 Do-files5. If Stata is
- Page 204 and 205: 192 [ U ] 16 Do-filesyou could writ
- Page 208 and 209: 196 [ U ] 17 Ado-files17.2 What is
- Page 210 and 211: 198 [ U ] 17 Ado-files17.5.1 Where
- Page 212 and 213: 200 [ U ] 17 Ado-filesWhat to do ne
- Page 214 and 215: 202 [ U ] 18 Programming StataStata
- Page 216 and 217: 204 [ U ] 18 Programming Stata1. Wr
- Page 218 and 219: 206 [ U ] 18 Programming Stata18.3.
- Page 220 and 221: 208 [ U ] 18 Programming StataGloba
- Page 222 and 223: 210 [ U ] 18 Programming Stata(assu
- Page 224 and 225: 212 [ U ] 18 Programming StataAnoth
- Page 226 and 227: 214 [ U ] 18 Programming StataThus
- Page 228 and 229: 216 [ U ] 18 Programming Stataat th
- Page 230 and 231: 218 [ U ] 18 Programming StataOpera
- Page 232 and 233: 220 [ U ] 18 Programming Statavarna
- Page 234 and 235: 222 [ U ] 18 Programming StataEquiv
- Page 236 and 237: 224 [ U ] 18 Programming Stata‘va
- Page 238 and 239: 226 [ U ] 18 Programming Statagetto
- Page 240 and 241: 228 [ U ] 18 Programming Stata18.7.
- Page 242 and 243: 230 [ U ] 18 Programming StataAltho
- Page 244 and 245: 232 [ U ] 18 Programming Stata3. Es
- Page 246 and 247: 234 [ U ] 18 Programming StataThe r
- Page 248 and 249: 236 [ U ] 18 Programming Statae(F)
- Page 250 and 251: 238 [ U ] 18 Programming Stataand s
- Page 252 and 253: 240 [ U ] 18 Programming Stata18.11
- Page 254 and 255: 242 [ U ] 18 Programming Stata18.11
- Page 256 and 257:
244 [ U ] 18 Programming Statabegin
- Page 258 and 259:
246 [ U ] 18 Programming Statabroke
- Page 260 and 261:
248 [ U ] 18 Programming StataYou c
- Page 262 and 263:
250 [ U ] 18 Programming StataOptio
- Page 264 and 265:
252 [ U ] 18 Programming Stata9. Op
- Page 267 and 268:
19 Immediate commandsContents19.1 O
- Page 269 and 270:
[ U ] 19.1 Overview 257The immediat
- Page 271 and 272:
20 Estimation and postestimation co
- Page 273 and 274:
[ U ] 20.1 All estimation commands
- Page 275 and 276:
[ U ] 20.2 Standard syntax 263. use
- Page 277 and 278:
[ U ] 20.4 Cataloging estimation re
- Page 279 and 280:
[ U ] 20.6 Specifying the estimatio
- Page 281 and 282:
[ U ] 20.8 Obtaining the variance-c
- Page 283 and 284:
[ U ] 20.9 Obtaining predicted valu
- Page 285 and 286:
[ U ] 20.9 Obtaining predicted valu
- Page 287 and 288:
[ U ] 20.10 Accessing estimated coe
- Page 289 and 290:
[ U ] 20.10 Accessing estimated coe
- Page 291 and 292:
[ U ] 20.11 Performing hypothesis t
- Page 293 and 294:
[ U ] 20.11 Performing hypothesis t
- Page 295 and 296:
[ U ] 20.13 Obtaining nonlinear com
- Page 297 and 298:
[ U ] 20.14 Obtaining marginal mean
- Page 299 and 300:
[ U ] 20.14 Obtaining marginal mean
- Page 301 and 302:
[ U ] 20.14 Obtaining marginal mean
- Page 303 and 304:
[ U ] 20.14 Obtaining marginal mean
- Page 305 and 306:
[ U ] 20.14 Obtaining marginal mean
- Page 307 and 308:
[ U ] 20.15 Obtaining conditional a
- Page 309 and 310:
[ U ] 20.16 Obtaining robust varian
- Page 311 and 312:
[ U ] 20.16 Obtaining robust varian
- Page 313 and 314:
[ U ] 20.16 Obtaining robust varian
- Page 315 and 316:
[ U ] 20.17 Obtaining scores 303We
- Page 317 and 318:
[ U ] 20.18 Weighted estimation 305
- Page 319 and 320:
20.18.2 Analytic weights[ U ] 20.18
- Page 321 and 322:
[ U ] 20.18 Weighted estimation 309
- Page 323 and 324:
✄✂[ U ] 20.20 References 311Hal
- Page 325 and 326:
Advice21 Inputting data . . . . . .
- Page 327 and 328:
21 Inputting dataContents21.1 Overv
- Page 329 and 330:
[ U ] 21.2 Determining which input
- Page 331 and 332:
[ U ] 21.2 Determining which input
- Page 333 and 334:
[ U ] 21.3 If you run out of memory
- Page 335:
[ U ] 21.6 Reference 323If the data
- Page 338 and 339:
326 [ U ] 22 Combining datasetsAlso
- Page 340 and 341:
328 [ U ] 23 Working with strings.
- Page 342 and 343:
330 [ U ] 23 Working with strings23
- Page 344 and 345:
332 [ U ] 24 Working with dates and
- Page 346 and 347:
334 [ U ] 24 Working with dates and
- Page 348 and 349:
336 [ U ] 24 Working with dates and
- Page 350 and 351:
338 [ U ] 24 Working with dates and
- Page 352 and 353:
340 [ U ] 25 Working with categoric
- Page 354 and 355:
342 [ U ] 25 Working with categoric
- Page 356 and 357:
344 [ U ] 25 Working with categoric
- Page 358 and 359:
346 [ U ] 25 Working with categoric
- Page 360 and 361:
348 [ U ] 25 Working with categoric
- Page 362 and 363:
350 [ U ] 25 Working with categoric
- Page 364 and 365:
352 [ U ] 25 Working with categoric
- Page 366 and 367:
354 [ U ] 25 Working with categoric
- Page 368 and 369:
356 [ U ] 25 Working with categoric
- Page 370 and 371:
358 [ U ] 26 Overview of Stata esti
- Page 372 and 373:
360 [ U ] 26 Overview of Stata esti
- Page 374 and 375:
362 [ U ] 26 Overview of Stata esti
- Page 376 and 377:
364 [ U ] 26 Overview of Stata esti
- Page 378 and 379:
366 [ U ] 26 Overview of Stata esti
- Page 380 and 381:
368 [ U ] 26 Overview of Stata esti
- Page 382 and 383:
370 [ U ] 26 Overview of Stata esti
- Page 384 and 385:
372 [ U ] 26 Overview of Stata esti
- Page 387 and 388:
27 Commands everyone should knowCon
- Page 389 and 390:
28 Using the Internet to keep up to
- Page 391 and 392:
[ U ] 28.3 Official updates 379Afte
- Page 393 and 394:
[ U ] 28.3 Official updates 3812. I
- Page 395 and 396:
28.3.6 Updating both ado-files and
- Page 397 and 398:
[ U ] 28.4 Downloading and managing
- Page 399 and 400:
[ U ] 28.5 Making your own download
- Page 401 and 402:
Subject and author index 389Subject
- Page 403 and 404:
Subject and author index 391encode
- Page 405 and 406:
Subject and author index 393margins
- Page 407 and 408:
Subject and author index 395standar