What is R?
R is a language and environment for statistical computing and graphics (https://www.r-project.org/l)
What is R used for?
Why use R ?
Disadvantages of R
Most common package on R:
Variables and Data Structure
## [1] 1 2 3 4
BMI <- data.frame(
gender = c("Male", "Male","Female"),
height = c(152, 171.5, 165),
weight = c(81,93, 78),
Age = c(42,38,26)
)
BMI## gender height weight Age
## 1 Male 152.0 81 42
## 2 Male 171.5 93 38
## 3 Female 165.0 78 26
Tabulation
## [1] "Banyaknya Penduduk Berumur 5 Tahun ke Atas menurut Karakteristik dan Status Pendidikan, 2020"
## Jenis Kelamin 02 Tidak / belums ekolah 03 SD 04 SMP 05 SMA keatas
## 1 1 3270.072 10384.928 6146.938 5735.927
## 2 2 3618.676 8769.409 4430.642 8604.462
## 06 Tidak bersekolah lagi
## 1 72952.29
## 2 69074.83
## [1] "Persentase Penduduk Berumur 5 Tahun ke Atas menurut Karakteristik dan Status Pendidikan, 2020"
## Jenis Kelamin 02 Tidak / belums ekolah 03 SD 04 SMP 05 SMA keatas
## 1 1 3.320202 10.544128 6.241170 5.823858
## 2 2 3.829367 9.279993 4.688609 9.105442
## 06 Tidak bersekolah lagi
## 1 74.07064
## 2 73.09659
Data Visualization
Another visualization : https://www.r-graph-gallery.com/
Dashboard
Direct Estimation - Complex Sampling
## Jenis Kelamin Tidak Sekolah (Proporsi) SE CI LOWER CI UPPER
## 1 1 0.03320202 0.006364916 0.02072702 0.04567703
## 2 2 0.03829367 0.005958246 0.02661572 0.04997162
## RSE RSE (%) VAR DEFF
## 1 0.1917027 19.17027 4.051215e-05 1.2415514
## 2 0.1555935 15.55935 3.550069e-05 0.9309919
Statistical Method for Analysis
Persentase Penduduk Berumur 5 Tahun ke Atas menurut Karakteristik dan Status Pendidikan, 2020
base function
tidyverse
ggplot2
survey