Corrected linear model function to reflect equation in section 3.2; added point size argument to plot.amdp