An Introduction to R for Quantitative Economics: Graphing, Simulating and Computing

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

This book gives an introduction to R to build up graphing, simulating and computing skills to enable one to see theoretical and statistical models in economics in a unified way. The great advantage of R is that it is free, extremely flexible and extensible. The book addresses the specific needs of economists, and helps them move up the R learning curve. It covers some mathematical topics such as, graphing the Cobb-Douglas function, using R to study the Solow growth model, in addition to statistical topics, from drawing statistical graphs to doing linear and logistic regression. It uses data that can be downloaded from the internet, and which is also available in different R packages. With some treatment of basic econometrics, the book discusses quantitative economics broadly and simply, looking at models in the light of data. Students of economics or economists keen to learn how to use R would find this book very useful.

Author(s): Vikram Dayal
Series: SpringerBriefs in Economics
Publisher: Springer
Year: 2015

Language: English
Pages: C, XV, 109

Cover
SpringerBriefs in Economics

An Introduction to R for Quantitative Economics

Copyright
© The Author(s) 2015
ISSN 2191-5504
ISSN 2191-5512 (electronic)
ISBN 978-81-322-2339-9
ISBN 978-81-322-2340-5 (eBook)
DOI 10.1007/978-81-322-2340-5
Library of Congress Control Number: 2015933817

Dedicated For Ma and Papa

Acknowledgments

Contents

About the Author

About the Book

1 Introduction
1.1 Three Key Skills
1.2 How to Use the Book
1.3 Help
1.4 R Code and Output
1.5 An Overview of Typical R Code
1.6 Exploring Further
References

2 R and RStudio
2.1 R and RStudio
2.2 Working Directory: Projects
2.3 Script
2.4 Different Objects in R
2.4.1 Vectors
2.4.2 Matrices
2.4.3 Data Frames
2.4.4 Lists
2.5 Example: Net Present Value
2.6 Exploring Further
References

3 Getting Data into R
3.1 Introduction
3.2 Chhatre and Agrawal (2009) Data
3.3 Graddy K (2006) Data
3.4 Crude Oil Price Data
3.5 Exploring Further
References

4 Supply and Demand
4.1 Introduction
4.2 Supply and Demand in General
4.3 The Mosaic Package
4.4 Demand
4.5 Supply and Demand
4.6 Equilibrium
4.7 Fish Data
4.8 Crude Oil Price Data
4.9 Exploring Further
References

5 Functions
5.1 Introduction
5.2 Change, Derivative and Elasticity
5.3 Loading the Mosaic Package
5.4 Linear Function
5.5 Log-Log Function
5.6 Functions with Data
5.7 Exploring Further
References

6 The Cobb-Douglas Function
6.1 Introduction
6.2 Cobb-Douglas Production Function
6.3 Exploring Further
References

7 Matrices
7.1 Introduction
7.2 Simple Statistics with Matrices
7.3 Simple Matrix Operations with R
7.4 Regression
7.5 Exploring Further
References

8 Statistical Simulation
8.1 Introduction
8.2 Probability Distributions
8.2.1 Normal Distribution
8.2.2 Uniform Distribution
8.2.3 Binomial Distribution
8.3 Central Limit Theorem
8.4 The t-Test
8.5 Logit Regression
8.6 Exploring Further
References

9 Anscombe's Quartet: Graphs Can Reveal
9.1 Introduction
9.2 The Data: 4 Sets of xs and ys
9.3 Same Regressions of ys on xs
9.4 Very Different Scatter Plots
9.5 Exploring Further
Reference

10 Carbon and Forests: Graphs and Regression
10.1 Introduction
10.2 Graphs
10.3 Multiple Regression
10.4 Exploring Further
References

11 Evaluating Training
11.1 Introduction
11.2 Lalonde Dataset
11.3 Matching Treatment and Control
11.4 Comparing Treatment and Control
11.5 Exploring Further
References

12 The Solow Growth Model
12.1 Introduction
12.2 The Solow Model
12.3 Growth Time Series
12.4 Distribution Over Time
12.5 Exploring Further
References

13 Simulating Random Walks and Fishing Cycles
13.1 Introduction
13.2 Difference Equations
13.3 Stochastic Elements
13.4 Random Walk
13.5 Fishing
13.6 Exploring Further
References

14 Basic Time Series
14.1 Introduction
14.2 Air Passengers
14.3 The Phillips Curve
14.4 Forecasting Inflation
14.5 Volatility in the Stock Market
14.6 Exploring Further
References