How to learn both applied statistics (econometrics) and free, open-source software R? This book allows students to have a sense of accomplishment by copying and pasting many hands-on templates provided here.The textbook is essential for anyone wishing to have a practical understanding of an extensive range of topics in Econometrics. No other text provides software snippets to learn so many new statistical tools with hands-on examples. The explicit knowledge of inputs and outputs of each new method allows the student to know which algorithm is worth studying. The book offers sufficient theoretical and algorithmic details about a vast range of statistical techniques.The second edition''s preface lists the following topics generally absent in other textbooks. (i) Iteratively reweighted least squares, (ii) Pillar charts to represent 3D data. (iii) Stochastic frontier analysis (SFA) (iv) model selection with Mallows'' Cp criterion. (v) Hodrick-Prescott (HP) filter. (vi) Automatic ARIMA mode