Click hier_regression_R_script.R link to view the file.