Lecture on regression analysis with R