R code supporting the manuscript:
Exploring a drying-grinding system for pulverized sewage sludge production
Ayumi Schober, Andrea Narvaez Torres, Juan Pablo Segovia-Gutiérrez, Nelson de Oliveira Quesado Filho, Lukas Thomae-Pohl, Matthias Rapf, Florian Drunsel, Natalie Germann
The complete R source code is available in the GitHub repository.
This repository contains the exploratory statistical analyses used to investigate relationships between sewage-sludge properties and the performance of a pilot-scale thin-film drying-grinding process.
The study evaluates four municipal sewage sludges processed under fixed operating conditions. The analyses examine associations among:
The dataset contains 24 process observations, while several sludge-level properties are repeated within each sludge source.
The R scripts implement:
MLM estimator.Pull-off force is converted to its absolute magnitude so that larger values represent stronger resistance during plate detachment. Numeric variables are standardized before the structural equation model is estimated.
1. dewatering.process.R analyses organic composition, inorganic composition, and initial sludge properties.2. drying.process.R analyses rheological and tack-test properties, final product attributes, and their regression relationships.3. dag.R estimates the exploratory structural equation model linking sludge composition, initial properties, pull-off force, and drying-grinding outcomes.Some alternative model specifications are retained as commented code to document the model-development process and estimation limitations.
The analysis was developed in R and uses the following packages:
tidyverse
readxl
ggcorrplot
correlation
ggbiplot
okcolors
writexl
rstudioapi
dagitty
lmtest
MVN
lavaan
Install the required packages before running the scripts.
Place the input workbook in the expected data directory and update its filename in the scripts when necessary. The current scripts reference:
data/20260609_Data_Sensitivity.xlsx
Open each script in RStudio and run them in numerical order:
1. dewatering.process.R
2. drying.process.R
3. dag.R
The scripts use the location of the active RStudio document to define the working directory. Statistical tables are exported as Excel files to the configured results directory.
Wastewater treatment plants are represented by anonymized identifiers from KA-1 to KA-4.
The analyses should be interpreted cautiously because:
This work was supported by the European Union’s Horizon 2020 research and innovation programme under grant agreement No. 958267, FlashPhos.