Skip to content

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.1
    Purpose of using R software
  2. 1.2
    Installing R and RStudio
  3. 1.3
    The R environment and working with R
  4. 1.4
    The R packages (meaning and purpose of packages, installing, loading and learning packages)
  5. 1.5
    Basic math, variables, data types, basic R functions
  6. 1.6
    List
  7. 1.7
    Vectors
  8. 1.8
    Matrices
  9. 1.9
    Arrays
  10. 1.10
    Data Frames
  11. 1.11
    Factors
  12. 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)

  1. 2.1
    Relational operators and vectors
  2. 2.2
    Logical operations (AND, OR, NOT)
  3. 2.3
    Logical operators and vectors
  4. 2.4
    Inbuilt commands and packages
  5. 2.5
    Control statements (conditional statements and loops)

3Data Input and Management in R (12 hrs)

  1. 3.1
    Data entering
  2. 3.2
    Data reading from external files (CSVs, Excel, SPSS, Stata files)
  3. 3.3
    Creating new variables
  4. 3.4
    Recoding variables
  5. 3.5
    Renaming variables
  6. 3.6
    Missing values
  7. 3.7
    Sorting data
  8. 3.8
    Merging data sets (adding columns and rows to the data frame)
  9. 3.9
    Manipulating and tidying data in R
  10. 3.10
    Concept about tidyverse and dplyr packages
  11. 3.11
    Subsetting, selecting variables, dropping variables, selecting observations
  12. 3.12
    dplyr functions, data manipulation by using dplyr
  13. 3.13
    Data wrangling in R
  14. 3.14
    Data transformation in R
  15. 3.15
    Working with pipes

4Matrix Operation (4 hrs)

  1. 4.1
    Matrix operations
  2. 4.2
    Creating matrix from vector
  3. 4.3
    Combine vectors or matrices
  4. 4.4
    Matrix addition
  5. 4.5
    Transpose matrix
  6. 4.6
    Find the dimension of a matrix or dataset
  7. 4.7
    Matrix multiplication
  8. 4.8
    Finding the inverse of a matrix
  9. 4.9
    Component-wise multiplication
  10. 4.10
    Create a submatrix
  11. 4.11
    Create a diagonal matrix
  12. 4.12
    A vector of diagonal elements
  13. 4.13
    Create a vector from a matrix
  14. 4.14
    Calculate the determinant
  15. 4.15
    Find eigenvalues and eigenvectors
  16. 4.16
    Find the singular value decomposition

5Graphics, Visualization and Summary Measures (8 hrs)

  1. 5.1
    Bar chart
  2. 5.2
    Pie chart
  3. 5.3
    Box plot
  4. 5.4
    Histogram
  5. 5.5
    Line graph
  6. 5.6
    Density plots
  7. 5.7
    Normal Q-Q plot
  8. 5.8
    Scatter plot
  9. 5.9
    Basics of ggplot: introduction to grammar of ggplot
  10. 5.10
    Univariate and multivariate charts using ggplot (bar chart, pie chart, box plot, histogram with density plot, line graph, scatter plot)
  11. 5.11
    Summary measures (mean, median, mode, dispersion, skewness, kurtosis)

6Probability and Probability distribution in R (4 hrs)

  1. 6.1
    Random number
  2. 6.2
    Random number generator
  3. 6.3
    Sample selection
  4. 6.4
    Binomial distribution
  5. 6.5
    Negative binomial distribution
  6. 6.6
    Poisson distribution
  7. 6.7
    Normal distribution
  8. 6.8
    Plot for testing normality

7Statistical Inference by using R (6 hrs)

  1. 7.1
    Idea about inferential analysis
  2. 7.2
    Hypothesis testing
  3. 7.3
    Null and alternative hypothesis
  4. 7.4
    Decision by critical value and p-value approaches
  5. 7.5
    Inferences in the one sample case
  6. 7.6
    Student's t distribution
  7. 7.7
    Comparing two variances (Fisher's F test)
  8. 7.8
    Comparing two sample means (independent sample t test)
  9. 7.9
    Paired sample t test
  10. 7.10
    Comparing three or more means (F test)
  11. 7.11
    Testing for independence in contingency tables using chi-squared

8Correlation and Regression Analysis by using R (4 hrs)

  1. 8.1
    Correlation coefficient
  2. 8.2
    Test of correlation coefficient
  3. 8.3
    Correlation matrix by using R/RStudio
  4. 8.4
    Linear regression
  5. 8.5
    Assumptions
  6. 8.6
    Unstandardized coefficient
  7. 8.7
    Standardized coefficient
  8. 8.8
    Hypothesis testing of individual regression coefficient (t test)
  9. 8.9
    Overall test (F test)
  10. 8.10
    Multiple coefficient of determination
  11. 8.11
    Standard error by using R/RStudio