I have a manufacturing problem with input variable I, intermediate additive A and output O. I have observational data of these variables.
Both I and A can impact O, to some extent. Moreover, A is partly determined by I in the data I have. That is, based on the input level, additive levels are partly determined (there's a trend), but not fully.
O = f(I, A) + error_f, A = g(I) + error_g.
My goal is to find the effect of A on O, for different levels of I.
How to frame it in terms of causal analysis? I tried to read about mediators and moderators, but they do not seem to really fit my problem. Also, it's impossible to perform randomized experiments due to practical reasons, so I am dependent on observational data.