{'fraction_non_alphanumeric': 0.014297729184188394, 'fraction_numerical': 0.00336417157275021, 'mean_word_length': 5.102564102564102, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Water quality in the River Clyde: a case study of additive and interaction models

Additive models are widely used to provide very flexible and effective descriptions of regression data where assumptions of linear relationships are too restrictive. However, these models usually assume independent errors and there are many applications where the data are correlated. This is often true in environmental settings and an application to water quality modelling in the River Clyde is described. Methods of fitting and analysing an additive model in this setting are discussed. An approach which fits an additive model in the usual way but incorporates the correlated error structure into the assessment of components is described. The methods are applied to the Clyde data to identify the factors which affect water quality, as well as spatial and temporal trends. Interaction terms, which allow the effects of explanatory variables to change smoothly with position down the river, are also explored. Particular emphasis is placed on approximate F tests to identify the most suitable models and the presence and nature of particular covariate effects. Copyright © 2007 John Wiley & Sons, Ltd.