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)
Purpose of using R software
Installing R and RStudio
The R environment and working with R
The R packages (meaning and purpose of packages, installing, loading and learning packages)
Basic math, variables, data types, basic R functions
List
Vectors
Matrices
Arrays
Data Frames
Factors
Organizing work in R and RStudio and making it reproducible (R Script, R Markdown documents)
2Conditional and Control Flow in R (3 hrs)
Relational operators and vectors
Logical operations (AND, OR, NOT)
Logical operators and vectors
Inbuilt commands and packages
Control statements (conditional statements and loops)
3Data Input and Management in R (12 hrs)
Data entering
Data reading from external files (CSVs, Excel, SPSS, Stata files)
Creating new variables
Recoding variables
Renaming variables
Missing values
Sorting data
Merging data sets (adding columns and rows to the data frame)
Manipulating and tidying data in R
Concept about tidyverse and dplyr packages
Subsetting, selecting variables, dropping variables, selecting observations
dplyr functions, data manipulation by using dplyr
Data wrangling in R
Data transformation in R
Working with pipes
4Matrix Operation (4 hrs)
Matrix operations
Creating matrix from vector
Combine vectors or matrices
Matrix addition
Transpose matrix
Find the dimension of a matrix or dataset
Matrix multiplication
Finding the inverse of a matrix
Component-wise multiplication
Create a submatrix
Create a diagonal matrix
A vector of diagonal elements
Create a vector from a matrix
Calculate the determinant
Find eigenvalues and eigenvectors
Find the singular value decomposition
5Graphics, Visualization and Summary Measures (8 hrs)
Bar chart
Pie chart
Box plot
Histogram
Line graph
Density plots
Normal Q-Q plot
Scatter plot
Basics of ggplot: introduction to grammar of ggplot
Univariate and multivariate charts using ggplot (bar chart, pie chart, box plot, histogram with density plot, line graph, scatter plot)
Summary measures (mean, median, mode, dispersion, skewness, kurtosis)
6Probability and Probability distribution in R (4 hrs)
Random number
Random number generator
Sample selection
Binomial distribution
Negative binomial distribution
Poisson distribution
Normal distribution
Plot for testing normality
7Statistical Inference by using R (6 hrs)
Idea about inferential analysis
Hypothesis testing
Null and alternative hypothesis
Decision by critical value and p-value approaches
Inferences in the one sample case
Student's t distribution
Comparing two variances (Fisher's F test)
Comparing two sample means (independent sample t test)
Paired sample t test
Comparing three or more means (F test)
Testing for independence in contingency tables using chi-squared
8Correlation and Regression Analysis by using R (4 hrs)
Correlation coefficient
Test of correlation coefficient
Correlation matrix by using R/RStudio
Linear regression
Assumptions
Unstandardized coefficient
Standardized coefficient
Hypothesis testing of individual regression coefficient (t test)
Overall test (F test)
Multiple coefficient of determination
Standard error by using R/RStudio