What is R?
A programming language and environment for statistical computing and data analysis
Widely used in academia, research, and industry
Why R in Economics?
Powerful tools for data manipulation, statistical modeling, and graphical representation
Essential for economic research and data analysis
Documentation tab at the official R website has useful information about R, including The R Manuals
Introduction to R Programming
Data Manipulation Techniques
Creating Visualizations
Statistical Analysis
Skills to Be Acquired:
Learn the essentials of R, including syntax, data types, and basic operations, and script writing
Explore methods to filter, merge, and reshape datasets for analysis
Develop skills to create and customize visualizations for data interpretation
Apply R to conduct various statistical tests and regression modeling
Learning Outcomes:
Confidently use R for data analysis in economic research
Foundational understanding of R for further study and practice
Engagement:
Tool
-> Global Options
-> Appearance
R Studio Integrated Development Environment (IDE)
Check out markdown cheatsheets
Quarto (.qmd
) and R Markdown (.Rmd
) documents are preferred over R scripts (.R
) for creating dynamic reports and documents
Combine code, text, and outputs in one document
Useful for reproducible research and sharing results (supports various output formats like HTML, PDF, Word, …)
Lets create our first .qmd
script (used with Quarto for creating dynamic reports with enhanced features)
WYSIWYG (What You See Is What You Get, pronounced WIZ-ee-wig)
R Markdown/Quarto Markdown (“What You Code Is What You Get”)
Now that you have compiled your first .qmd
file, you should try to open and understand basic organisation of other Markdown files
Review the Tutorial Files:
Continue Learning:
Tutorial: Hello, Quarto (documents)
R Markdown (Introduction)
Book | Description |
---|---|
R for Data Science by Garrett Grolemund and Hadley Wickham | The best book to learn the latest tools for elegantly doing data science. |
The R Book by Michael Crawley | As close to an R bible as you can get. |
Advanced R by Hadley Wickham | A truly advanced book for expert R users, especially those with a programming background. Hadley Wickham is the R guru. |
Discovering Statistics with R by Field, Miles and Field | A classic text focusing on the theory and practice of statistical analysis with R |
Applied Predictive Modeling by Kuhn and Johnson | A great text specializing in statistical learning aka predictive modeling aka machine learning with R. |
Site | Description |
---|---|
www.google.com | Seriously, Google is any programmer’s best friend. More likely than not you will be directed to www.stackoverflow.com or www.stackexchange.com |
www.r-bloggers.com | R bloggers is my go-to place to discover the latest and greatest with R. |
blog.revolutionanalytics.com | Revolution analytics always has great R related material. |