check linear

Click check_linear.R link to view the file.