Using generalized additive models to reduce residual confounding | Synapse