Laizé, C.L.R.; Smith, J.T.; Bowes, M.J.
R implementation of the Load Apportionment Model (RLAM) determining relative quantities of phosphorus entering rivers
Cite this model code as:
Laizé, C.L.R.; Smith, J.T.; Bowes, M.J. (2024). R implementation of the Load Apportionment Model (RLAM) determining relative quantities of phosphorus entering rivers. NERC EDS Environmental Information Data Centre. https://doi.org/10.5285/900bf809-5dfd-4232-a654-df58d43b1a3f
Download/Access
PLEASE NOTE: By accessing or using this model code, you agree to the terms of the relevant licence agreement(s). You will ensure that this model code is cited in any publication that describes research in which the data have been used.
Publication of this model code by the EIDC does not signify any endorsement or approval. By accessing and using the resource, you acknowledge that it is entirely at your own risk and you are solely responsible for any loss or liability that may arise
Publication of this model code by the EIDC does not signify any endorsement or approval. By accessing and using the resource, you acknowledge that it is entirely at your own risk and you are solely responsible for any loss or liability that may arise
This model code is available under the terms of the Open Government Licence
https://doi.org/10.5285/900bf809-5dfd-4232-a654-df58d43b1a3f
R implementation of the Load Apportionment Model (LAM) model for determining relative quantities of phosphorus entering rivers from sewage treatment works and agriculture, including an user-friendly R shiny interface. Users can load their own datasets of observed phosphorus and discharge and perform four types of model fitting: automated fitting on full dataset, fitting with one user-specified coefficient on full dataset, automated and user-specified fitting on data subset.
Software requirements: R or R studio with shiny and ggplot2 packages; web browser.
Software requirements: R or R studio with shiny and ggplot2 packages; web browser.
Publication date: 2024-12-16
View numbers valid from 16 December 2024 Download numbers valid from 16 December 2024 (information prior to this was not collected)
Formats
R script, Comma-separated values (CSV), JPG
Provenance & quality
Model formulation is based on Bowes et al. (2008). The model is adapted from the Excel-based LAM and translated to R code. It was developed under R version 4.4.0.
Testing was done by comparing model fitting and predictions for over 20 sites with prior Excel-based LAM available. Software was further checked using data from over 60 sites.
Testing was done by comparing model fitting and predictions for over 20 sites with prior Excel-based LAM available. Software was further checked using data from over 60 sites.
Licensing and constraints
This model code is available under the terms of the Open Government Licence
Cite this model code as:
Laizé, C.L.R.; Smith, J.T.; Bowes, M.J. (2024). R implementation of the Load Apportionment Model (RLAM) determining relative quantities of phosphorus entering rivers. NERC EDS Environmental Information Data Centre. https://doi.org/10.5285/900bf809-5dfd-4232-a654-df58d43b1a3f
Supplemental information
Bowes, M. J., Smith, J. T., Jarvie, H. P., & Neal, C. (2008). Modelling of phosphorus inputs to rivers from diffuse and point sources.. Science of the Total Environment, 395(2-3), 125-138.
Correspondence/contact details
Laizé, C.L.R.
UK Centre for Ecology & Hydrology
Maclean Building, Benson Lane, Crowmarsh Gifford
Wallingford
Oxfordshire
OX10 8BB
UNITED KINGDOM
enquiries@ceh.ac.uk
Wallingford
Oxfordshire
OX10 8BB
UNITED KINGDOM
Authors
Other contacts
Rights holder
UK Centre for Ecology & Hydrology
Custodian
NERC EDS Environmental Information Data Centre
info@eidc.ac.uk
Publisher
NERC EDS Environmental Information Data Centre
info@eidc.ac.uk
Additional metadata
INSPIRE theme
Keywords
Funding
Natural Environment Research Council Award: NE/R016429/1
Last updated
20 December 2024 13:33