0% found this document useful (0 votes)
12 views3 pages

Introduction to R for Data Analysis

The document outlines a course on R, focusing on data analysis in finance and economics, with objectives including data manipulation, plotting, and linear modeling. It includes assessments, recommended readings, and a detailed schedule of sessions covering various topics from installation to linear regression. The course is structured into chapters that cover foundational concepts, data types, graphics, and advanced data manipulation techniques.

Uploaded by

LovingmathsMan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views3 pages

Introduction to R for Data Analysis

The document outlines a course on R, focusing on data analysis in finance and economics, with objectives including data manipulation, plotting, and linear modeling. It includes assessments, recommended readings, and a detailed schedule of sessions covering various topics from installation to linear regression. The course is structured into chapters that cover foundational concepts, data types, graphics, and advanced data manipulation techniques.

Uploaded by

LovingmathsMan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

INTRODUCTION TO R

Lecturer: Fabien RONDEAU 2024


[Link]@[Link]
[Link]

Aims of the course:


This course is devoted to the introduction of R, a useful software for data analysis in
finance and in economics. Students have to be able to work with a data frame, to plot
multiple graphs, to calculate stylized facts, to estimate linear models (and to calculate
forecastings).
Assessments:
- Mid term
- Final exam
Recommended Readings:
[1] Hafner S., (2019), An introduction to R for beginners
[2] Paradis E., (2005), R for beginners,

Schedules:

Main objectives Chapters


Session 1 – 12 hours Install, work and manipulate data. 1-4
Monday – Tuesday
Session 2 – 12h Use time series data and plot. Linear 4-10
Wednesday – Thursday Regressions.
Session 3 – 6h R – macroeconomic application (1) Gapminder data
Friday
Session 4 – 6h R – macroeconomic application (2) OECD data
Saturday

1
Chapter 1: Introduction and preliminaries
1.1. R overview
1.2. Finding and installing R
1.3. Using R and getting started with the RStudio
Chapter 2: Operators, functions and data
2.1. Operators
2.2. Functions
2.3. Objects
2.4. Writing good code
2.5. File organization
Chapter 3: Data types and data objects
3.1. Data types
3.2. Overview of R data structures
3.3. Vectors
3.4. Matrices, arrays and lists
Chapter 4: Data frames, data import, and data export
4.1. Your working directory
4.2. Reading text files
4.3. Reading spreadsheet files
4.4. Creating data frames manually
4.5. Working with data frames
4.6. Writing data to files
Chapter 5: Graphics with R
5.1. Managing graphics
5.2. Graphical functions
5.3. Low-level plotting commands
5.4. A practical example
5.5. Lattice, ggplot2 and other packages

2
Chapter 6: Explanatory data analysis
6.1 Summary statistics
6.2 Counts and contingency tables
6.3 Histograms and other summary plots
6.4 Normal quintile and cumulative probability plots
Chapter 7: Basic data manipulation
7.1 Indexing and subsetting
7.2 Sorting data and location observations
7.3 Combining data frames and matrices
Chapter 8: Time series data
8.1 Plots, trends, and seasonal variation
8.2 Decomposition of series
8.3 Summary of commands and applications
Chapter 9: More on data manipulations: aggregating and summarizing data
9.1. Counts
9.2. Data aggregation and groups operations
9.3. The dplyr package and the magrittr operator
9.4. Reshaping data
Chapter 10: Linear regression
10.1. The lm function, model formulas, and statistical output
10.2. Linear regression

Common questions

Powered by AI

The course includes a dedicated section on time series data, focusing on plotting, identifying trends, and seasonal variations. It explains series decomposition and provides a summary of commands and applications, which are essential for understanding and analyzing temporal data patterns in fields like economics and finance .

The 'lm function' is crucial in R for performing linear regression modeling, which allows for the establishment of relationships between variables. Chapter 10 delves into the function's use, model formulas, and the interpretation of statistical output, which are fundamental for assessing data dependencies and forecasting in various scientific and business contexts .

Understanding 'data import and export' functions is significant because they allow seamless integration and sharing of data between R and other software tools. Chapter 4 details reading text and spreadsheet files, and creating data frames, enabling efficient data management, transformation, and analysis across platforms .

Chapter 5 expands on R's graphical capabilities by covering graphic management, graphical functions, low-level plotting commands, and providing practical examples. It highlights packages like Lattice and ggplot2, which are used for creating sophisticated and layered plots, thereby advancing the aesthetic and functional presentation of data .

Operators and functions in R facilitate operations and calculations on data, whereas data structures organize data for efficient access and manipulation. Understanding these elements, as introduced in Chapter 2, is critical for coding effectively in R and optimizing data analysis workflows .

Fabien Rondeau utilizes a combination of lectures, practical examples, and recommended readings to ensure proficiency in R. Hands-on sessions with real-world datasets (e.g., Gapminder and OECD data) and the use of practical examples in plotting and data manipulation help students learn the practical applications of R .

The course is structured into four sessions, each lasting 6-12 hours, designed to progressively build skills in R. Session 1 focuses on installing R and manipulating data, Session 2 on using time series data and plotting, and performing linear regressions, Session 3 applies R to macroeconomic data using Gapminder, and Session 4 focuses on OECD data applications .

The primary objectives of the 'INTRODUCTION TO R' course are to familiarize students with R as a tool for data analysis in finance and economics. Students are expected to work with data frames, plot graphs, calculate stylized facts, estimate linear models, and make forecasts using R .

Data manipulation and aggregation are crucial for summarizing and extracting meaningful insights from large datasets. Chapter 9 discusses techniques such as the use of the dplyr package and magrittr operator for efficient data wrangling, and operations like reshaping data. These skills are vital in real-world applications where large datasets need to be condensed into actionable information .

Chapter 3 introduces data types and structures such as vectors, matrices, arrays, and lists. These structures are fundamental in organizing and manipulating data within R for analysis purposes. Vectors are for single datasets, matrices and arrays for multi-dimensional data, and lists can combine different data types, which are essential for complex data examinations .

You might also like