Click 4.7_Fitting a series of regressions.R link to view the file.