-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.Rmd
41 lines (30 loc) · 2.59 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
title: "Data Analysis for Researchers"
author: "Hiroshi Suzuki"
date: "`r Sys.Date()`"
site: bookdown::bookdown_site
documentclass: book
bibliography: [book.bib, packages.bib]
url: https://icu-hsuzuki.github.io/da4r2022/
# cover-image: path to the social sharing image like images/cover.jpg
description: |
This is a book based on the lectures given in AY2020-AY2023 at International Christian University compiled using the bookdown package and RStudio.
The HTML output format for this example is bookdown::bs4_book,
set in the _output.yml file.
biblio-style: apalike
csl: chicago-fullnote-bibliography.csl
---
# About {-}
This is an extended lecture note of a course jointly taught mainly with Professor Taisei Kaizoji in the Winter term AY2020-AY2023. It is a ten-week course with two periods a week; one period is 70 minutes. This note mainly covers the contents of week two to week six, which I taught. Professor Kaizoji introduced and provided examples, somewhat related to his specialty Macroeconomics. By his request, I included work to recreate charts in the executive summary of the World Inequality Report 2022.
PART I, The Introduction, basically consists of the course contents presented in class and my responses to assignments two to five.
The first assignment is in Chapter 1, Introduction.
PART II is the basics of exploratory data analysis, abbreviated as EDA, summarized in several components. There are overlaps with the contents scattered around in PART I.
PART III explains the data source we mainly used in class: World Development Indicators of the World Bank, Our World in Data, OECD, and UN Data. As an introduction, we often used the package `WDI` to search and download the World Development Indicator data.
In APPENDICES, we included miscellaneous topics closely related to the contents of this lecture note.
## The package `tidyverse` {-}
We focused on the `tidyvese` packages, which includes `ggplot2`, `dplyr`, `tidyr`, `readr` and `tibble`, and did not use other packages unless it is crucial. As you can see below, other packages are automatically attached when we load `tidyverse` by `library(tidyverse)` However, some packages installed with `tidyverse` need to be loaded when they are necessary. The package `readxl` for Excel is one of them.
```{r}
library(tidyverse)
```
## The package `bookdown` {-}
We used the [`bookdown` package](https://cran.r-project.org/web/packages/bookdown/index.html) to create this page with [`bs4_book` style](https://pkgs.rstudio.com/bookdown/reference/bs4_book.html) of bootstrap4. See the [Bookdown book](https://bookdown.org/yihui/bookdown/) for the detail.