To download the solutions for each of the exercises as individual R scripts click the relevant links below. If the code opens in a browser window then right click on the link and select ‘save link as’ (or similar).
Linear model with single categorical explanatory variable exercise
Linear model with categorical and continuous explanatory variables exercise