This repository contains teaching material for introductory courses of statistics in R.
We provide the Github markdown below, but the rendering is much better in html notebook. The latter can be found [here].
-
Introduction to the tidyverse: plotting, filtering, organising data.
-
Basic R instructions: package installation, data generation, matrix & dataframe manipulation, loops and simple functions.
-
Distributions: descriptive statistics, parametric distributions, plots, histograms, etc.
-
Maximum likelihood estimation: moment matching versus the mle/mle2 functions.
-
Monte-Carlo simulations: random number generation with sequential tournaments as examples + cool exercises.
-
Time-series analysis: AR, VAR fitting & predictions using French economic data.
-
Bayesian inference: conjugate priors, grid approximation and a snapshot of Markov Chains (but no MCMC sadly).
-
Statistical tests & regressions: one and two mean tests, basic regression analysis.
The original Rmd files (.zip) as well as the correction of exercises: data + html and Rmd format (.zip also).
R memo : a compilation of everything you need to know (survival toolkit).
Example on financial data: exercises on 30 large US firms; data here.
Short tutorial: online exercises (& solutions) on the core functions of the tidyverse.
Links: R on the web: a short list of links, sorted by themes.
ANES data: US political surveys (1990-2016) and in Excel form
You can download all files at once here.
DISCLAIMER: the data and code are meant for pedagogical use only.