Overall workflow
This tool supports threshold setting for nutrients and other supporting physico-chemical elements when ecological status is influenced by more than one stressor. The workflow follows the multiple-stressor guidance: choose a suitable Biological Quality Element, screen candidate stressors, build transparent logistic models, evaluate classification thresholds, and then predict boundary values under realistic combinations of other pressures.
How the left-hand menu follows the workflow
- Step 1: Data import - load the example dataset or upload a wide-format CSV file, then check variable names and data structure.
- Step 2: Analysis setup - select the EQR/BQE response, set the Moderate-Good EQR boundary, choose the shared predictor set, and inspect density, Q-Q, and normality diagnostics.
- Step 3: Univariate screening - inspect the relationship between one stressor and the response, including the binary good-or-better classification and univariate diagnostics.
- Step 4: Predictor screening BRT - use boosted regression trees to rank predictors and inspect partial dependence patterns.
- Step 5: Predictor screening SEM - fit path models, review direct effects, and inspect covariance/correlation structure among selected variables.
- Step 6: Multivariate models - fit GLM models using the shared predictor set, compare model support, check VIF/Cook's distance, and inspect effects and PCA plots.
- Step 7: Thresholds & boundaries - solve candidate boundary values from the selected multivariate model and export the report.
Statistical workflow
- Select BQE and data: use an ecological response with enough observations and a balanced number of sites above and below the boundary of interest.
- Univariate screening: check the direct relationship between the BQE/EQR and each stressor, including the binary good-or-better classification used by the logistic models.
- Predictor screening: use BRT importance, BRT partial dependence, SEM paths, normality checks, and correlation warnings to identify informative and ecologically plausible predictors.
- Multivariate modelling: compare minimal, full, optimal, and additional candidate GLM models. Prefer models that improve explanatory power without unnecessary complexity.
- Thresholds and boundaries: choose a probability cut-off using kappa, omission, and commission errors, then solve for boundary values while holding other stressors at selected values.
How to interpret the outputs
The app does not replace ecological judgement. It generates candidate boundaries and diagnostic evidence. Final values should be selected with knowledge of local pressures, typology, feasibility of management actions, and stakeholder or expert consultation.
- Highly correlated predictors can destabilise model coefficients; the guide recommends avoiding pairs with |r| greater than 0.7 in the same final model.
- Typological variables, non-manageable stressors, and manageable stressors should be treated differently when fixing values for boundary prediction.
- Boundary predictions should usually stay within the interquartile range of supporting predictors, because extrapolation near distribution extremes is less reliable.
- For multivariate models, balanced omission and commission errors are often more appropriate than a strongly precautionary univariate cut-off.
- The final boundary should be checked against other evidence, other BQEs where available, and national or regional ecological knowledge.
References and guidance
The workflow implemented in this app follows the ECOSTAT/JRC guidance for setting nutrient and supporting-element boundaries under multiple-stressor conditions. The references below provide the methodological background for BQE selection, predictor screening, logistic modelling, threshold selection, and final ecological interpretation.
- Phillips, G., Kelly, M.G., Teixeira, H., Free, G., Varbiro, G., Varkitzi, I., Lazaridou, M., Ntislidou, C., Karaouzas, I., Kolada, A., Folster, J. and Mingarelli, S. Checking and setting nutrient criteria to support ecological status. iii. Setting nutrient criteria when other stressors are present. ECOSTAT / JRC guidance document draft, 2026.
- Phillips, G., Kelly, M., Teixeira, H., Free, G., Varbiro, G., Varkitzi, I., Kolada, A., Lyche Solheim, A., Poikane, S. Best practice for establishing nutrient concentrations to support good ecological status, revised guidance, 2026.
- Phillips, G., Kelly, M., Teixeira, H., Salas, F., Free, G., Leujak, W., Pitt, J.-A., Lyche Solheim, A., Varbiro, G. and Poikane, S. Best practice for establishing nutrient concentrations to support good ecological status. Publications Office of the European Union, 2018/2019.
- Kelly, M.G. and colleagues. Toolkit and mismatch-method guidance for deriving nutrient boundaries from ecological classification models, including omission, commission, kappa and probability-threshold diagnostics.
- Feld, C.K. and colleagues. Guidance and routines for analysing multiple stressors, biological responses and ecological assessment data.
- Elith, J., Leathwick, J.R. and Hastie, T. A working guide to boosted regression trees. Journal of Animal Ecology, 2008.
- Burnham, K.P. and Anderson, D.R. Model Selection and Multimodel Inference: A Practical Information-Theoretic Approach. Springer, 2002.
- Fox, J. and Monette, G. Generalized collinearity diagnostics. Journal of the American Statistical Association, 1992.
- Rosseel, Y. lavaan: An R package for structural equation modeling. Journal of Statistical Software, 2012.
References are included to document the scientific basis of the workflow. Final boundary values should still be selected with local ecological knowledge and expert consultation.
Import
Select the proper separator and decimal settings before loading the data.
Data should be in wide format: one sampling record per row, with the ecological response or EQR column and each stressor or predictor in separate columns.
Example file structure
| site_id | waterbody_type | EQR | Total_P | Total_N | Conductivity |
|---|---|---|---|---|---|
| Lake_001 | lowland | 0.72 | 28.4 | 1.10 | 365 |
| Lake_002 | upland | 0.48 | 63.1 | 1.85 | 510 |
Use numeric columns for the EQR/response and stressors. Existing binary status columns can also be used in Step 7.
Content of the datafile
Shared analysis setup
Normality and transformation screening
Density plots: These show the empirical distribution of each predictor. A roughly symmetric, bell-shaped curve suggests approximate normality. Strong right-skew is common for nutrients.
Q-Q plots: Points should fall along the 45 degree reference line if the data follow a normal distribution. Curvature indicates skewness; S-shaped patterns suggest heavy tails.
Shapiro-Wilk test: Tests the null hypothesis that the data are normally distributed.
- p >= 0.05: no strong evidence against normality
- p < 0.05: significant deviation from normality
With larger sample sizes, the Shapiro test becomes very sensitive. Always interpret the test together with the density and Q-Q plots.
Practical guidance for modelling: Logistic regression and classification models do not require normally distributed predictors, but severe skewness may affect interpretability or model stability.
- Consider log10 transformation for right-skewed environmental variables.
- Check whether transformation improves symmetry and Q-Q alignment.
- Avoid over-transforming variables with already symmetric distributions.
Univariate Settings
Univariate Logistic
This plot shows the relationship between the selected stressor and the probability that a site is classified as good ecological status or better. Each point represents an observed site, while the line shows the fitted model response. The curve illustrates how the likelihood of achieving good ecological condition changes along the stressor gradient. A steep decline in the curve indicates a range where increasing stressor levels are associated with a rapid decrease in the probability of good ecological status.
The lower plot compares the original EQR values with the selected stressor. The dashed line marks the EQR boundary used to create the binary class; the smooth line is a descriptive trend, not the classification model itself.Relationship between Biological metric(EQR) and stressor concentration, dotted lines mark biota good/moderate boundary. Blue lines show GAM model fit to illustrate the general trend.
Thresholds
ROC / AUC
Shared predictors used here
Correlation (EQR + selected predictors)
VIF (multicollinearity) for selected predictors
Coefficients
Model coefficients from the fitted multivariate model.
Estimates are shown with standard errors, test statistics and p-values (rounded to 3 decimals). Positive coefficients increase the probability of good-or-better status; negative coefficients decrease it, conditional on the other selected predictors.
Model selection
Effects
PCA
Multivariate boundary prediction
What this step does: estimates the value of a primary stressor that corresponds to a selected probability of good-or-better ecological status, while accounting for other pressures.
Example: to estimate TP boundaries at different levels of AbsF, select EQR as the response, TP as the primary stressor, and AbsF as the secondary stressor. Leave the additional stressor fields set to None.
1. What boundary do you focus?
2. How should other pressures vary?
Download XLSX report