Class schedule: Monday and Thursday | 13:00 - 14:00 Room Econ-135
Laboratory schedule: Wednesday | 10:00 - 13:00
Instructor: Christopher Llones
e-mail: christopher.llones@vsu.edu.ph
Pre-requisites: Math 13
Course credits: 3 units
Number of hours: 2 hrs lectures and 3 hrs laboratory per week
Course description
This course introduces students to computer programming using R, with applications in economics. It covers the installation and use of R and RStudio, packages and help pages, R objects and notation, data management with Tidyverse, data visualization with ggplot2, exploratory data analysis, reproducible reporting with Quarto, version control with Git/GitHub, and Quarto website creation. By the end of the course, students will be able to design transparent, reproducible workflows for economic data analysis and communicate results effectively.
Course outcomes
- CO1: Demonstrate foundational proficiency in R programming.
- CO2: Apply data management and visualization techniques for economic analysis
- CO3: Conduct exploratory data analysis and produce reproducible reports.
- CO4: Utilize collaborative tools and digital publishing for reproducible workflows.
Course outline
| Module 1: Introduction to R Programming |
- Installing R and RStudio
- Packages and help pages
- R objects
- R notation
|
- Learn to install and configure R and RStudio.
- Understand how to install, load, and manage R packages. Explore R’s built-in help system and documentation for functions and datasets.
- Learn about fundamental R objects including vectors, matrices, lists, and data frames. Understand how to create, manipulate, and inspect objects.
- Develop proficiency in R’s notation, including indexing, subsetting, applying functions to objects.
|
| Module 2: Data management and transformation with Tidyverse |
- Introduction to Tidyverse
- dplyr basics
- Data reshaping
- Handling missing data
- Case studies
|
- Understand the philosophy of Tidyverse and its role in data science workflows.
- Learn functions for filtering, selecting, mutating, summarizing, and arranging data.
- Apply pivoting and joining techniques to restructure datasets.
- Identify, manage, and impute missing values in datasets.
|
| Module 3: Data visualization with ggplot2 |
- Grammar of graphics
- Basic plots
- Mapping aesthetics
- Geometries and faceting
- Themes and export
|
- Understand the grammar of graphics and its role in structuring visualizations.
- Create histograms, bar charts, boxplots, and scatterplots.
- Map variables to color, shapes, to enhance interpretability.
- Apply geometries and faceting techniques for comparative analysis.
- Modify plot themes and export visualizations for reports and presentations.
|
| Module 4: Exploratory data analysis (EDA) |
- Rudiments of EDA
- Charts and tables
- Measures of central tendency
- Dispersion and distribution
- Contingency tables and scatterplots
|
- Discuss EDA as the first step in data analysis.
- Summarize and visualize data using tables and plots.
- Compute and interpret mean, median, mode, and quantiles.
- Analyze variance, standard deviation, skewness, and kurtosis.
- Explore relationship between categorical variables and continuous variables.
|
| Module 5: Data analysis report with Quarto |
- Introduction to Quarto
- Embedding R code
- Formatting outputs
- Rendering reports
- Exporting reports
|
- Learn to create dynamic, reproducible documents using Quarto and markdown syntax.
- Integrate R code and inline calculations within narrative text
- Format tables and plots for professional presentation.
- Render reports to multiple formats (HTML, PDF, Word)
- Produce transparent, replicable research outputs for academic and policy contexts.
|
| Module 6: Version control with Git and Github |
- Introductin to Git
- Git workflows
- Github basics
- Practical application
|
- Understand the basics of version control and why it matters in programming and research.
- Learn to initialize repositories, commit changes, and manage branches.
- Push repositories to Github, collaborate with peers, and manage issues.
- Apply Git/Github to manage R projects and Quarto reports.
|
| Module 7: Creating a Quarto website |
- Introduction to Quarto websites
- Website setup
- Embedding content
- Publishing
- Case study
|
- Learn the structure and purpose of Quarto websites for academic and project communication.
- Create a basic Quarto website, configure navigation, and customize themes.
- Add pages, plots, tables, and interactive elements.
- Deploy websites to Github Pages for public access.
- Build a simple course or project website showcasing economic data analysis.
|