%PDF-1.4 %ÐÔÅØ 5 0 obj << /S /GoTo /D (section.1) >> endobj 8 0 obj (Introductory Comments) endobj 9 0 obj << /S /GoTo /D (subsection.1.1) >> endobj 12 0 obj (What is R?) endobj 13 0 obj << /S /GoTo /D (subsection.1.2) >> endobj 16 0 obj (How is R Better Than Other Packages?) endobj 17 0 obj << /S /GoTo /D (subsection.1.3) >> endobj 20 0 obj (Obtaining R) endobj 21 0 obj << /S /GoTo /D (subsection.1.4) >> endobj 24 0 obj (Using R Interactively and Writing Scripts) endobj 25 0 obj << /S /GoTo /D (subsection.1.5) >> endobj 28 0 obj (Getting Help) endobj 29 0 obj << /S /GoTo /D (section.2) >> endobj 32 0 obj (Working with Data) endobj 33 0 obj << /S /GoTo /D (subsection.2.1) >> endobj 36 0 obj (Basic Data Manipulation) endobj 37 0 obj << /S /GoTo /D (subsection.2.2) >> endobj 40 0 obj (Caveat: Math Operations and the Recycling Rule) endobj 41 0 obj << /S /GoTo /D (subsection.2.3) >> endobj 44 0 obj (Important Data Types) endobj 45 0 obj << /S /GoTo /D (subsubsection.2.3.1) >> endobj 48 0 obj (Vectors) endobj 49 0 obj << /S /GoTo /D (subsubsection.2.3.2) >> endobj 52 0 obj (Arrays, Matrices) endobj 53 0 obj << /S /GoTo /D (subsubsection.2.3.3) >> endobj 56 0 obj (Dataframes) endobj 57 0 obj << /S /GoTo /D (subsubsection.2.3.4) >> endobj 60 0 obj (Lists) endobj 61 0 obj << /S /GoTo /D (subsubsection.2.3.5) >> endobj 64 0 obj (S3 Classes) endobj 65 0 obj << /S /GoTo /D (subsubsection.2.3.6) >> endobj 68 0 obj (S4 Classes) endobj 69 0 obj << /S /GoTo /D (subsection.2.4) >> endobj 72 0 obj (Working with Dates) endobj 73 0 obj << /S /GoTo /D (subsection.2.5) >> endobj 76 0 obj (Merging Dataframes) endobj 77 0 obj << /S /GoTo /D (subsection.2.6) >> endobj 80 0 obj (Opening a Data File) endobj 81 0 obj << /S /GoTo /D (subsection.2.7) >> endobj 84 0 obj (Working With Very Large Data Files) endobj 85 0 obj << /S /GoTo /D (subsubsection.2.7.1) >> endobj 88 0 obj (Reading fields of data using scan\(\)) endobj 89 0 obj << /S /GoTo /D (subsubsection.2.7.2) >> endobj 92 0 obj (Utilizing Unix Tools) endobj 93 0 obj << /S /GoTo /D (subsubsection.2.7.3) >> endobj 96 0 obj (Using Disk instead of RAM) endobj 97 0 obj << /S /GoTo /D (subsubsection.2.7.4) >> endobj 100 0 obj (Using RSQLite) endobj 101 0 obj << /S /GoTo /D (subsection.2.8) >> endobj 104 0 obj (Issuing System Commands---Directory Listing) endobj 105 0 obj << /S /GoTo /D (subsection.2.9) >> endobj 108 0 obj (Reading Data From the Clipboard) endobj 109 0 obj << /S /GoTo /D (subsection.2.10) >> endobj 112 0 obj (Editing Data Directly) endobj 113 0 obj << /S /GoTo /D (section.3) >> endobj 116 0 obj (Cross Sectional Regression) endobj 117 0 obj << /S /GoTo /D (subsection.3.1) >> endobj 120 0 obj (Ordinary Least Squares) endobj 121 0 obj << /S /GoTo /D (subsection.3.2) >> endobj 124 0 obj (Extracting Statistics from the Regression) endobj 125 0 obj << /S /GoTo /D (subsection.3.3) >> endobj 128 0 obj (Heteroskedasticity and Friends) endobj 129 0 obj << /S /GoTo /D (subsubsection.3.3.1) >> endobj 132 0 obj (Breusch-Pagan Test for Heteroskedasticity) endobj 133 0 obj << /S /GoTo /D (subsubsection.3.3.2) >> endobj 136 0 obj (Heteroskedasticity \(Autocorrelation\) Robust Covariance Matrix) endobj 137 0 obj << /S /GoTo /D (subsection.3.4) >> endobj 140 0 obj (Linear Hypothesis Testing \(Wald and F\)) endobj 141 0 obj << /S /GoTo /D (subsection.3.5) >> endobj 144 0 obj (Weighted and Generalized Least Squares) endobj 145 0 obj << /S /GoTo /D (subsection.3.6) >> endobj 148 0 obj (Models With Factors/Groups) endobj 149 0 obj << /S /GoTo /D (section.4) >> endobj 152 0 obj (Special Regressions) endobj 153 0 obj << /S /GoTo /D (subsection.4.1) >> endobj 156 0 obj (Fixed/Random Effects Models) endobj 157 0 obj << /S /GoTo /D (subsubsection.4.1.1) >> endobj 160 0 obj (Fixed Effects) endobj 161 0 obj << /S /GoTo /D (subsubsection.4.1.2) >> endobj 164 0 obj (Random Effects) endobj 165 0 obj << /S /GoTo /D (subsection.4.2) >> endobj 168 0 obj (Qualitative Response) endobj 169 0 obj << /S /GoTo /D (subsubsection.4.2.1) >> endobj 172 0 obj (Logit/Probit) endobj 173 0 obj << /S /GoTo /D (subsubsection.4.2.2) >> endobj 176 0 obj (Multinomial Logit) endobj 177 0 obj << /S /GoTo /D (subsubsection.4.2.3) >> endobj 180 0 obj (Ordered Logit/Probit) endobj 181 0 obj << /S /GoTo /D (subsection.4.3) >> endobj 184 0 obj (Tobit and Censored Regression) endobj 185 0 obj << /S /GoTo /D (subsection.4.4) >> endobj 188 0 obj (Quantile Regression) endobj 189 0 obj << /S /GoTo /D (subsection.4.5) >> endobj 192 0 obj (Robust Regression - M Estimators) endobj 193 0 obj << /S /GoTo /D (subsection.4.6) >> endobj 196 0 obj (Nonlinear Least Squares) endobj 197 0 obj << /S /GoTo /D (subsection.4.7) >> endobj 200 0 obj (Two Stage Least Squares on a Single Structural Equation) endobj 201 0 obj << /S /GoTo /D (subsection.4.8) >> endobj 204 0 obj (Systems of Equations) endobj 205 0 obj << /S /GoTo /D (subsubsection.4.8.1) >> endobj 208 0 obj (Seemingly Unrelated Regression) endobj 209 0 obj << /S /GoTo /D (subsubsection.4.8.2) >> endobj 212 0 obj (Two Stage Least Squares on a System) endobj 213 0 obj << /S /GoTo /D (section.5) >> endobj 216 0 obj (Time Series Regression) endobj 217 0 obj << /S /GoTo /D (subsection.5.1) >> endobj 220 0 obj (Differences and Lags) endobj 221 0 obj << /S /GoTo /D (subsection.5.2) >> endobj 224 0 obj (Filters) endobj 225 0 obj << /S /GoTo /D (subsubsection.5.2.1) >> endobj 228 0 obj (Canned AR and MA filters) endobj 229 0 obj << /S /GoTo /D (subsubsection.5.2.2) >> endobj 232 0 obj (Manual Filtration) endobj 233 0 obj << /S /GoTo /D (subsubsection.5.2.3) >> endobj 236 0 obj (Hodrick Prescott Filter) endobj 237 0 obj << /S /GoTo /D (subsubsection.5.2.4) >> endobj 240 0 obj (Kalman Filter) endobj 241 0 obj << /S /GoTo /D (subsection.5.3) >> endobj 244 0 obj (ARIMA/ARFIMA) endobj 245 0 obj << /S /GoTo /D (subsection.5.4) >> endobj 248 0 obj (ARCH/GARCH) endobj 249 0 obj << /S /GoTo /D (subsubsection.5.4.1) >> endobj 252 0 obj (Basic GARCH--garch\(\)) endobj 253 0 obj << /S /GoTo /D (subsubsection.5.4.2) >> endobj 256 0 obj (Advanced GARCH--garchFit\(\)) endobj 257 0 obj << /S /GoTo /D (subsubsection.5.4.3) >> endobj 260 0 obj (Miscellaneous GARCH--Ox G@RCH) endobj 261 0 obj << /S /GoTo /D (subsection.5.5) >> endobj 264 0 obj (Correlograms) endobj 265 0 obj << /S /GoTo /D (subsection.5.6) >> endobj 268 0 obj (Predicted Values) endobj 269 0 obj << /S /GoTo /D (subsection.5.7) >> endobj 272 0 obj (Time Series Tests) endobj 273 0 obj << /S /GoTo /D (subsubsection.5.7.1) >> endobj 276 0 obj (Durbin-Watson Test for Autocorrelation) endobj 277 0 obj << /S /GoTo /D (subsubsection.5.7.2) >> endobj 280 0 obj (Box-Pierce and Breusch-Godfrey Tests for Autocorrelation) endobj 281 0 obj << /S /GoTo /D (subsubsection.5.7.3) >> endobj 284 0 obj (Dickey-Fuller Test for Unit Root) endobj 285 0 obj << /S /GoTo /D (subsection.5.8) >> endobj 288 0 obj (Vector Autoregressions \(VAR\)) endobj 289 0 obj << /S /GoTo /D (section.6) >> endobj 292 0 obj (Plotting) endobj 293 0 obj << /S /GoTo /D (subsection.6.1) >> endobj 296 0 obj (Plotting Empirical Distributions) endobj 297 0 obj << /S /GoTo /D (subsection.6.2) >> endobj 300 0 obj (Contour Plots) endobj 301 0 obj << /S /GoTo /D (subsection.6.3) >> endobj 304 0 obj (Adding Legends and Stuff) endobj 305 0 obj << /S /GoTo /D (subsection.6.4) >> endobj 308 0 obj (Adding Arrows, Text, and Markers) endobj 309 0 obj << /S /GoTo /D (subsection.6.5) >> endobj 312 0 obj (Multiple Plots) endobj 313 0 obj << /S /GoTo /D (subsection.6.6) >> endobj 316 0 obj (Saving Plots---png, jpg, eps, pdf, xfig) endobj 317 0 obj << /S /GoTo /D (subsection.6.7) >> endobj 320 0 obj (Adding Greek Letters and Math Symbols to Plots) endobj 321 0 obj << /S /GoTo /D (subsection.6.8) >> endobj 324 0 obj (Other Graphics Packages) endobj 325 0 obj << /S /GoTo /D (section.7) >> endobj 328 0 obj (Statistics) endobj 329 0 obj << /S /GoTo /D (subsection.7.1) >> endobj 332 0 obj (Working with Common Statistical Distributions) endobj 333 0 obj << /S /GoTo /D (subsection.7.2) >> endobj 336 0 obj (P-Values) endobj 337 0 obj << /S /GoTo /D (subsection.7.3) >> endobj 340 0 obj (Sampling from Data) endobj 341 0 obj << /S /GoTo /D (section.8) >> endobj 344 0 obj (Math in R) endobj 345 0 obj << /S /GoTo /D (subsection.8.1) >> endobj 348 0 obj (Matrix Operations) endobj 349 0 obj << /S /GoTo /D (subsubsection.8.1.1) >> endobj 352 0 obj (Matrix Algebra and Inversion) endobj 353 0 obj << /S /GoTo /D (subsubsection.8.1.2) >> endobj 356 0 obj (Factorizations) endobj 357 0 obj << /S /GoTo /D (subsection.8.2) >> endobj 360 0 obj (Numerical Optimization) endobj 361 0 obj << /S /GoTo /D (subsubsection.8.2.1) >> endobj 364 0 obj (Unconstrained Minimization) endobj 365 0 obj << /S /GoTo /D (subsubsection.8.2.2) >> endobj 368 0 obj (Minimization with Linear Constraints) endobj 369 0 obj << /S /GoTo /D (subsection.8.3) >> endobj 372 0 obj (Numerical Integration) endobj 373 0 obj << /S /GoTo /D (section.9) >> endobj 376 0 obj (Programming) endobj 377 0 obj << /S /GoTo /D (subsection.9.1) >> endobj 380 0 obj (Writing Functions) endobj 381 0 obj << /S /GoTo /D (subsection.9.2) >> endobj 384 0 obj (Looping) endobj 385 0 obj << /S /GoTo /D (subsection.9.3) >> endobj 388 0 obj (Avoiding Loops) endobj 389 0 obj << /S /GoTo /D (subsubsection.9.3.1) >> endobj 392 0 obj (Applying a Function to an Array \(or a Cross Section of it\)) endobj 393 0 obj << /S /GoTo /D (subsubsection.9.3.2) >> endobj 396 0 obj (Replicating) endobj 397 0 obj << /S /GoTo /D (subsection.9.4) >> endobj 400 0 obj (Conditionals) endobj 401 0 obj << /S /GoTo /D (subsubsection.9.4.1) >> endobj 404 0 obj (Binary Operators) endobj 405 0 obj << /S /GoTo /D (subsubsection.9.4.2) >> endobj 408 0 obj (WARNING: Conditionals and NA) endobj 409 0 obj << /S /GoTo /D (subsection.9.5) >> endobj 412 0 obj (The Ternary Operator) endobj 413 0 obj << /S /GoTo /D (subsection.9.6) >> endobj 416 0 obj (Outputting Text) endobj 417 0 obj << /S /GoTo /D (subsection.9.7) >> endobj 420 0 obj (Pausing/Getting Input) endobj 421 0 obj << /S /GoTo /D (subsection.9.8) >> endobj 424 0 obj (Timing Blocks of Code) endobj 425 0 obj << /S /GoTo /D (subsection.9.9) >> endobj 428 0 obj (Calling C functions from R) endobj 429 0 obj << /S /GoTo /D (subsubsection.9.9.1) >> endobj 432 0 obj (How to Write the C Code) endobj 433 0 obj << /S /GoTo /D (subsubsection.9.9.2) >> endobj 436 0 obj (How to Use the Compiled Functions) endobj 437 0 obj << /S /GoTo /D (subsection.9.10) >> endobj 440 0 obj (Calling R Functions from C) endobj 441 0 obj << /S /GoTo /D (section.10) >> endobj 444 0 obj (Changing Configurations) endobj 445 0 obj << /S /GoTo /D (subsection.10.1) >> endobj 448 0 obj (Default Options) endobj 449 0 obj << /S /GoTo /D (subsubsection.10.1.1) >> endobj 452 0 obj (Significant Digits) endobj 453 0 obj << /S /GoTo /D (subsubsection.10.1.2) >> endobj 456 0 obj (What to do with NAs) endobj 457 0 obj << /S /GoTo /D (subsubsection.10.1.3) >> endobj 460 0 obj (How to Handle Errors) endobj 461 0 obj << /S /GoTo /D (subsubsection.10.1.4) >> endobj 464 0 obj (Suppressing Warnings) endobj 465 0 obj << /S /GoTo /D (section.11) >> endobj 468 0 obj (Saving Your Work) endobj 469 0 obj << /S /GoTo /D (subsection.11.1) >> endobj 472 0 obj (Saving the Data) endobj 473 0 obj << /S /GoTo /D (subsection.11.2) >> endobj 476 0 obj (Saving the Session Output) endobj 477 0 obj << /S /GoTo /D (subsection.11.3) >> endobj 480 0 obj (Saving as LaTeX) endobj 481 0 obj << /S /GoTo /D (section.12) >> endobj 484 0 obj (Final Comments) endobj 485 0 obj << /S /GoTo /D (section.13) >> endobj 488 0 obj (Appendix: Code Examples) endobj 489 0 obj << /S /GoTo /D (subsection.13.1) >> endobj 492 0 obj (Monte Carlo Simulation) endobj 493 0 obj << /S /GoTo /D (subsection.13.2) >> endobj 496 0 obj (The Haar Wavelet) endobj 497 0 obj << /S /GoTo /D (subsection.13.3) >> endobj 500 0 obj (Maximum Likelihood Estimation) endobj 501 0 obj << /S /GoTo /D (subsection.13.4) >> endobj 504 0 obj (Extracting Info From a Large File) endobj 505 0 obj << /S /GoTo /D (subsection.13.5) >> endobj 508 0 obj (Contour Plot) endobj 509 0 obj << /S /GoTo /D [510 0 R /Fit ] >> endobj 512 0 obj << /Length 709 /Filter /FlateDecode >> stream xÚuTMsÛ ½ûWpD3$ôqët&É$—N[·—$,c›‰Âuýï»°Š'iÓËÛåíîc“-áäfÁÿ³~^.>^EDˤP5Ynˆ¬%“R¦é˜èZ“{z5xç÷&;LEYqI­Ãõ[ñ¸¼Ž†Áz¥dâèY'*RÊŽu½@†› ]![á˜lèO†ëuÑ ªƒ›NÉéCÜ!Ÿ¬HËú–‹D'8Ø•$5«ªé8¯ÞË\ö-K§J k7Wÿeˆ~U DMÀ´²ùŒ–JλÄsQäj¹x^09¤•šQ=ö‹ûGNÖ€ßΪ¾#§µ'¢kA©ì‘|_|EQeM4Ð6©ªN²^B¼bRµÿtоêz„})³‚9p¹³ y-kzЇ$zî"íOlôìôÁn­ÓãxN{NAƒÑ¥ cô…(ÄùÔföà ÙӝuÛ—#“"ܤŠÓÎfØ­ÑØ!§¢Óq5™ç£ÁH¬¢¦+,x€áy“襑É; …ŽÈÌÆãÃ’2¤ŠÉ©gu£P[ˆT= I5¨ŽîýÎí Q3@¦x|à¢ÂÍ*ÕvFfYÍ fBð&£î N;SïuæŒ <‡´‹:=ƒå¤iÕÛ,ù”yjðèa8 ð4Sû€”ց.‡Ñ¤;ÊéFõˆ6Qx°Ü/¥íz»ÉšpTcžìsjÈ‹R‰&JÔ©%Z¨^+Þbrí@ÖÙqÄ+ñ‡h÷I€¦‚r˜N|¿Rk—ðíÖLÑz—ŠWP$Ô«§Ù¥ãÁý<9ŸŸ æ¾‘ôªdç4zŽN!x=‚·0jÙ˜'gF_ô¢Y_Èòë©^¿þfV¶å&-ù[ôÓ“G¿Ý2—€´e‚cÀ'èñ—(TàâHÆÞ|¯ðmü.aD endstream endobj 510 0 obj << /Type /Page /Contents 512 0 R /Resources 511 0 R /MediaBox [0 0 612 792] /Parent 521 0 R >> endobj 513 0 obj << /D [510 0 R /XYZ 72 744.907 null] >> endobj 514 0 obj << /D [510 0 R /XYZ 72 720 null] >> endobj 511 0 obj << /Font << /F15 515 0 R /F16 516 0 R /F23 517 0 R /F24 518 0 R /F17 519 0 R /F37 520 0 R >> /ProcSet [ /PDF /Text ] >> endobj 575 0 obj << /Length 1928 /Filter /FlateDecode >> stream xÚí[ISÛH½çWø(W¤nms™ H¦`H°3’94rcº%¦ÕN 5?~z¶Z8"6•`ë^;~ï[Þ·ÈíM{nïø•«¯ûãW{G éyp`è÷ÆW½ÈïEž;tAÔOzŸœƒ"ïÏaX]Êþ?ã?«ÏïA·—“ÐÅgÝÞÀ÷†‰§?êõ‰8ïø'}‡Ñ¢?à×É