Start of refactor which breaks the pre-processing of the dataframe into functions.
Refactor which adds the lognormal distribution to show that a log-transformed gaussian glm is justified.