R Programming syllabus
BDS 2038 units · 89 topicsAcademic year 2083/84
Browse the units
1An introduction to R and Data Structure in R (7 hrs)
- 1.1
Purpose of using R software
- 1.2
Installing R and RStudio
- 1.3
The R environment and working with R
- 1.4
The R packages (meaning and purpose of packages, installing, loading and learning packages)
- 1.5
Basic math, variables, data types, basic R functions
- 1.6
List
- 1.7
Vectors
- 1.8
Matrices
- 1.9
Arrays
- 1.10
Data Frames
- 1.11
Factors
- 1.12
Organizing work in R and RStudio and making it reproducible (R Script, R Markdown documents)
2Conditional and Control Flow in R (3 hrs)
- 2.1
Relational operators and vectors
- 2.2
Logical operations (AND, OR, NOT)
- 2.3
Logical operators and vectors
- 2.4
Inbuilt commands and packages
- 2.5
Control statements (conditional statements and loops)
3Data Input and Management in R (12 hrs)
- 3.1
Data entering
- 3.2
Data reading from external files (CSVs, Excel, SPSS, Stata files)
- 3.3
Creating new variables
- 3.4
Recoding variables
- 3.5
Renaming variables
- 3.6
Missing values
- 3.7
Sorting data
- 3.8
Merging data sets (adding columns and rows to the data frame)
- 3.9
Manipulating and tidying data in R
- 3.10
Concept about tidyverse and dplyr packages
- 3.11
Subsetting, selecting variables, dropping variables, selecting observations
- 3.12
dplyr functions, data manipulation by using dplyr
- 3.13
Data wrangling in R
- 3.14
Data transformation in R
- 3.15
Working with pipes
4Matrix Operation (4 hrs)
- 4.1
Matrix operations
- 4.2
Creating matrix from vector
- 4.3
Combine vectors or matrices
- 4.4
Matrix addition
- 4.5
Transpose matrix
- 4.6
Find the dimension of a matrix or dataset
- 4.7
Matrix multiplication
- 4.8
Finding the inverse of a matrix
- 4.9
Component-wise multiplication
- 4.10
Create a submatrix
- 4.11
Create a diagonal matrix
- 4.12
A vector of diagonal elements
- 4.13
Create a vector from a matrix
- 4.14
Calculate the determinant
- 4.15
Find eigenvalues and eigenvectors
- 4.16
Find the singular value decomposition
5Graphics, Visualization and Summary Measures (8 hrs)
- 5.1
Bar chart
- 5.2
Pie chart
- 5.3
Box plot
- 5.4
Histogram
- 5.5
Line graph
- 5.6
Density plots
- 5.7
Normal Q-Q plot
- 5.8
Scatter plot
- 5.9
Basics of ggplot: introduction to grammar of ggplot
- 5.10
Univariate and multivariate charts using ggplot (bar chart, pie chart, box plot, histogram with density plot, line graph, scatter plot)
- 5.11
Summary measures (mean, median, mode, dispersion, skewness, kurtosis)
6Probability and Probability distribution in R (4 hrs)
- 6.1
Random number
- 6.2
Random number generator
- 6.3
Sample selection
- 6.4
Binomial distribution
- 6.5
Negative binomial distribution
- 6.6
Poisson distribution
- 6.7
Normal distribution
- 6.8
Plot for testing normality
7Statistical Inference by using R (6 hrs)
- 7.1
Idea about inferential analysis
- 7.2
Hypothesis testing
- 7.3
Null and alternative hypothesis
- 7.4
Decision by critical value and p-value approaches
- 7.5
Inferences in the one sample case
- 7.6
Student's t distribution
- 7.7
Comparing two variances (Fisher's F test)
- 7.8
Comparing two sample means (independent sample t test)
- 7.9
Paired sample t test
- 7.10
Comparing three or more means (F test)
- 7.11
Testing for independence in contingency tables using chi-squared
8Correlation and Regression Analysis by using R (4 hrs)
- 8.1
Correlation coefficient
- 8.2
Test of correlation coefficient
- 8.3
Correlation matrix by using R/RStudio
- 8.4
Linear regression
- 8.5
Assumptions
- 8.6
Unstandardized coefficient
- 8.7
Standardized coefficient
- 8.8
Hypothesis testing of individual regression coefficient (t test)
- 8.9
Overall test (F test)
- 8.10
Multiple coefficient of determination
- 8.11
Standard error by using R/RStudio